static void Main(string[] args) { var elephant = new Elephant(); var bird = new Bird(); var employee = new Employee(23, "Tom"); var visitor = new Visitor(15, "Bill"); employee.GoToTheZoo(); visitor.GoToTheZoo(); var herb = new Herb(); var birdAviary = new Aviary(); var elephantAviery = new Aviary(); birdAviary.PlaceHerb(herb); birdAviary.PlaceAnimal(bird); elephantAviery.PlaceAnimal(elephant); Console.WriteLine(birdAviary.GetStatus()); employee.FeedAnimal(elephant); employee.FeedAnimal(bird); visitor.Observe(elephant); visitor.Observe(bird); }
static void Main(string[] args) { var elephant = new Elephant(); var bird = new Bird(); var employee = new ZooEmployee(23, "Petro"); var visitor = new Visitor(15, "Ivan"); employee.GoToTheZoo(); visitor.GoToTheZoo(); var plant = new Plant(); var birdAviary = new Aviary(); var elephantAviary = new Aviary(); birdAviary.PlacePlant(plant); birdAviary.PlaxeAnimal(bird); elephantAviary.PlaxeAnimal(elephant); Console.WriteLine(birdAviary.GetStatus()); employee.FeedAnimal(elephant); employee.FeedAnimal(bird); visitor.Observe(elephant); visitor.Observe(bird); }