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 Zoo
- {
- class Program
- {
- static void Main(string[] args)
- {
- Cat fluffy = new Cat("Fluffy", 2);
- Dog rex = new Dog("Rex", 5);
- Trainer pesho = new Trainer(fluffy);
- pesho.IntroduceAnimal();
- pesho.Entity = rex;
- pesho.IntroduceAnimal();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment