Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace WorldITMOMIM
- {
- class Program
- {
- static void Main(string[] args)
- {
- Person stoyan = new Person("Stoyan", 54);
- //stoyan.Name = "Stoyan";
- //stoyan.Age = -7000;
- //Console.WriteLine("My name is {0}. I am {1} years old.", stoyan.Name, stoyan.Age);
- stoyan.IntroduceYourSelf();
- Student kircho = new Student("Kircho", 23, "234243242");
- kircho.IntroduceYourSelf();
- Athlete krisi = new Athlete("Krisi", 24, "Box");
- krisi.IntroduceYourSelf();
- Executor exec1 = new Executor(stoyan);
- exec1.MakeItSpeak();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement