wingman007

2015_OOP_Zoo_Program

May 11th, 2015
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Zoo
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Cat fluffy = new Cat("Fluffy", 2);
  14.             Dog rex = new Dog("Rex", 5);
  15.  
  16.             Trainer pesho = new Trainer(fluffy);
  17.             pesho.IntroduceAnimal();
  18.  
  19.             pesho.Entity = rex;
  20.  
  21.             pesho.IntroduceAnimal();
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment