Advertisement
wingman007

2018OOPProgram

May 2nd, 2018
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 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 WorldITMOMIM
  8. {
  9.   class Program
  10.   {
  11.     static void Main(string[] args)
  12.     {
  13.       Person stoyan = new Person("Stoyan", 54);
  14.       //stoyan.Name = "Stoyan";
  15.       //stoyan.Age = -7000;
  16.  
  17.       //Console.WriteLine("My name is {0}. I am {1} years old.", stoyan.Name, stoyan.Age);
  18.       stoyan.IntroduceYourSelf();
  19.  
  20.  
  21.       Student kircho = new Student("Kircho", 23, "234243242");
  22.       kircho.IntroduceYourSelf();
  23.      
  24.  
  25.  
  26.       Athlete krisi = new Athlete("Krisi", 24, "Box");
  27.       krisi.IntroduceYourSelf();
  28.  
  29.  
  30.       Executor exec1 = new Executor(stoyan);
  31.       exec1.MakeItSpeak();
  32.  
  33.     }
  34.   }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement