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 App2a
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine(Human.PI);
- // int counter = 0;
- Console.WriteLine("onlyRead is {0}", Human.onlyRead);
- Human person1 = new Human("Stoayn", 50);
- // counter++;
- Human person2 = new Human(20, "Ivan", "Petko", "Nikola");
- // counter++;
- Human person3 = new Human();
- // counter++;
- // person1.onlyRead = 10.1;
- // person1.Name ="Stoyan";
- // person1.Age = 50;
- // person2.Name = "Ivan";
- // person2.Age = 20;
- // Console.WriteLine("My name is {0}. I am {1} years old! My balace is {2}", person1.Name, person1.Age, person1.Balance );
- // Console.WriteLine("My name is {0}. I am {1} years old!", person2.Name, person2.Age);
- Human.Nationality = "German";
- person1.IntroduceYourSelf("verbous");
- Console.WriteLine("I am person1 my best friend is {0}!", person1.GetFriend(0));
- person2.IntroduceYourSelf();
- Console.WriteLine("I am person2 my best friend is {0}!", person2.GetFriend(0));
- person3.IntroduceYourSelf();
- IncreasePopulation();
- IncreasePopulation();
- Console.WriteLine("The population is {0}", Human.counter);
- Console.WriteLine("The National Income is {0}", Human.CalculateNationalIncome());
- Console.WriteLine("Hello World!");
- Console.Read();
- }
- public static void IncreasePopulation()
- {
- Human person1 = new Human("Petko", 15);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement