Example #1
0
 public static void Speak(Pokemons pokemon)
 {
     if (pokemon == Pikachu)
     {
         Console.WriteLine("Pika-pika");
     }
     else if (pokemon == Bulbasaur)
     {
         Console.WriteLine("Bulba-saur");
     }
     else
     {
         Console.WriteLine("Char-char");
     }
 }
Example #2
0
 public static void Add(Pokemons pokemon)
 {
     pokemons.Add(pokemon);
 }