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 World4
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("The value of my constant PI = {0}", Person.PI);
- Console.WriteLine("onlyRead = {0}", Person.onlyRead);
- Console.WriteLine("The national incme = {0}", Person.CalculateNationalIncome());
- // int counter = 0;
- Person person1 = new Person("Stoyan", 51);
- // counter++;
- // person1.Name = "Stoyan";
- // person1.Age = 51;
- Person person2 = new Person(18, "Teodora");
- // counter++;
- // person2.Name = "Teodora";
- // person2.Age = 18;
- Person person3 = new Person();
- // counter++;
- Console.WriteLine("The national incme = {0}", Person.CalculateNationalIncome());
- IncreasePopulation();
- person1.IntroduceYourSelf();
- person2.IntroduceYourSelf();
- person3.IntroduceYourSelf();
- // Console.WriteLine("onlyread = {0}", person1.onlyRead);
- // Console.WriteLine("onlyread = {0}", person2.onlyRead);
- Person.Nationality = "German";
- person1.IntroduceYourSelf();
- person2.IntroduceYourSelf();
- person3.IntroduceYourSelf();
- Console.WriteLine("The population of my little kingdom is {0}", Person.Counter);
- Console.WriteLine("The national incme = {0}", Person.CalculateNationalIncome());
- /*
- Console.WriteLine("My name is {0}. I am {1} years old! And my balance is {2}",
- person1.Name, person1.Age, person1.Balance);
- Console.WriteLine("My name is {0}. I am {1} years old!",
- person2.Name, person2.Age);
- Console.WriteLine("My name is {0}. I am {1} years old!",
- person3.Name, person3.Age);
- */
- }
- private static void IncreasePopulation()
- {
- Person petko = new Person("Petko", 18);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment