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 App2b
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("My constant is {0}", Human.PI);
- Console.WriteLine("My onlyRead has value = {0}", Human.onlyRead);
- // int counter = 0;
- Human person1 = new Human("Stoyan", 50, Human.BrainSize.Normal);
- // Console.WriteLine(person1.onlyRead);
- // counter++;
- Human person2 = new Human(20, "Ivan", "Petko", "Nikol");
- // counter++;
- Human person3 = new Human();
- // counter++;
- // person1.onlyRead = 3.4;
- // Console.WriteLine("My name is {0}. I am {1} years old!", person1.Name, person1.Age);
- // Console.WriteLine("My name is {0}. I am {1} years old!", person2.Name, person2.Age);
- Human.Nationality = "German";
- person1.IntroduceYourSelf("verbous");
- person2.IntroduceYourSelf();
- Console.WriteLine(person2.GetFriendName(0));
- person3.IntroduceYourSelf();
- IncreasePopulation();
- Student student1 = new Student("Kircho", 25, 2345);
- Athlete athlete1 = new Athlete("Krisi", 26, "futbol");
- student1.IntroduceYourSelf();
- athlete1.IntroduceYourSelf();
- // Console.WriteLine((int)Human.BrainSize.small);
- Executor exec1 = new Executor(athlete1);
- exec1.MakeHimSpeak();
- Console.WriteLine(Days.Friday);
- Console.WriteLine((int)Days.Friday);
- Console.WriteLine(Days.Friday is Days);
- Manager<Student> manager = new Manager<Student>();
- // manager.AddStudent(student1);
- // manager.AddStudent(student1);
- // manager.RemoveStudent();
- manager.AddEntity(student1);
- manager.AddEntity(student1);
- manager.RemoveEntity();
- Console.WriteLine("I am managing {0} entities!", manager.GetNumberOfEntities());
- Console.WriteLine("The population {0}", Human.counter);
- Console.WriteLine("National Income is {0}", Human.CalculateNationlIncome());
- Console.WriteLine("Hello World!");
- Console.Read();
- }
- public static void IncreasePopulation()
- {
- Human person1 = new Human("Petko", 15, Human.BrainSize.Large);
- }
- public enum Days {
- Monday, Tuesday, Wednesday, Thursday, Friday = 400, Saturday, Sunday
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement