Build a Pokédex
Pokémon is an international phenomenon that has taken the world by storm. Somewhere in a remote village called Pallet Town, there is a Pokémon Professor who is quietly studying these creatures.
We will let him introduce himself:
Hello, there! Welcome to the world of Pokémon. My name is Oak. People call me the Pokémon Professor.
This world is inhabited by creatures called Pokémon. For some people, Pokémon are pets. Others use them to fight. As for myself… I study pokémon as a profession.
There are over 896 Pokémons now in the wild, each with different characteristics such as name, types, weaknesses, and more. Help Professor Oak study them by categorizing them each into an electronic device — a Pokédex!
Write a Pokedex.swift program that stores different Pokémon using classes and inheritance.