Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ZooTrainer
- {
- class Program
- {
- static void Main(string[] args)
- {
- Animal[] zoo = new Animal[] {
- new Cat("Meowo", 3),
- new Dog("Balo", 5),
- new Cat("Sivomeow", 6),
- new Dog("Doggo", 2)
- };
- foreach (var animal in zoo)
- {
- Console.WriteLine(animal);
- Console.WriteLine(animal.MakeNoise());
- Console.WriteLine(animal.MakeTrick());
- Console.WriteLine(animal.GenerateSpecialTrick());
- Console.WriteLine(animal.GenerateSeriesOfNoise());
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement