Advertisement
wingman007

C#_OOP_Principles_Program.cs

May 19th, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 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 Exam
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Giraffe giraffe = new Giraffe(20, "Stoyancho", 10);
  14.             Elephant elephant = new Elephant(21, "Ivancho", 100);
  15.             Manager manager = new Manager(giraffe);
  16.             manager.IntroduceAnimal();
  17.  
  18.             manager.Anima = elephant;
  19.             manager.IntroduceAnimal();
  20.  
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement