Advertisement
wingman007

OOP_2015_Animals_Program

Mar 20th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 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 Animals1a
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Cat fluffy = new Cat("Fluffy");
  14.             Dog rex = new Dog("Rex");
  15.  
  16.             Coach coach = new Coach(fluffy);
  17.             coach.MakeItTalk();
  18.  
  19.             coach.Entity = rex;
  20.             coach.MakeItTalk();
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement