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 Person1a
- {
- class Program
- {
- static void Main(string[] args)
- {
- // int i = 0;
- Person person1 = new Person("Stoyan", 50);
- // i++;
- Person person2 = new Person();
- // i++;
- Person person3 = new Person(20, "Rayna");
- // i++;
- // person1.Name = "Stoyan";
- // person1.Age = 50;
- // person2.Name = "Rayna";
- // person2.Age = 20;
- /*
- Console.WriteLine("My name is {0}. I am {1} old.",
- person1.Name, person1.Age);
- Console.WriteLine("My name is {0}. I am {1} old.",
- person2.Name, person2.Age);
- Console.WriteLine("My name is {0}. I am {1} old.",
- person3.Name, person3.Age);
- */
- Person.nationality = "German";
- person1.IntroduceYourSelf();
- person2.IntroduceYourSelf();
- person3.IntroduceYourSelf();
- System.Console.WriteLine(Person.counter);
- Person student1 = new Student("Mariya", 20, 43241);
- // student1.FNumber = 12345;
- student1.IntroduceYourSelf();
- Person athlete1 = new Athlete("Kircho", 25, "box");
- athlete1.IntroduceYourSelf();
- Console.WriteLine(athlete1);
- Executor exec1 = new Executor(student1);
- exec1.MakeHimSpeak();
- exec1.Entity = athlete1;
- exec1.MakeHimSpeak();
- Console.WriteLine("Hello World");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement