wingman007

C#_OOP_433_1a_Program.cs

Mar 21st, 2014
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace OOP6
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Human stoyan = new Human("Stoyan", 52);
  13.             Student svetoslav = new Student("Svetoslav", 20, 1234);
  14.             Athlete evgeni = new Athlete("Evgeni", 20, "Futbol");
  15.             Console.WriteLine("My facial expression: {0}", evgeni.AreYouHappy());
  16.             Console.WriteLine("My facial expression: ", stoyan.AreYouHappy());
  17.  
  18.             stoyan.IntroduceYourSelf();
  19.             svetoslav.IntroduceYourSelf();
  20.             evgeni.IntroduceYourSelf();
  21.  
  22.             Manager manager = new Manager(svetoslav);
  23.             manager.MakeHimSpeak();
  24.  
  25.             Console.WriteLine(Human.counter);
  26.  
  27.             Console.Read();
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment