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 Exam
- {
- class Program
- {
- static void Main(string[] args)
- {
- Giraffe giraffe = new Giraffe(20, "Stoyancho", 10);
- Elephant elephant = new Elephant(21, "Ivancho", 100);
- Manager manager = new Manager(giraffe);
- manager.IntroduceAnimal();
- manager.Anima = elephant;
- manager.IntroduceAnimal();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement