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 WorldMI
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("National Income {0}", Person.CalculateNationalIncome());
- Console.WriteLine("const PI = {0}", Person.PI);
- //int counter = 0;
- //counter++;
- Person stoyan = new Person("Stoyan", 54, 345.67M, "Koce", "Ralica", "Ivancho");
- //stoyan.Name = "Stoyan";
- //stoyan.Age = -700;
- //counter++;
- Person koce = new Person(age: 18, name: "Koce"); // named arguments mus appear after all fixed arguments
- //koce.Name = "Koce";
- //koce.Age = 18;
- //Console.WriteLine("My name is {0}. I am {1} years old!", stoyan.Name, stoyan.Age);
- //Console.WriteLine("My name is {0}. I am {1} years old!", koce.Name, koce.Age);
- stoyan.IntroduceYourSelf();
- koce.IntroduceYourSelf();
- Console.WriteLine("The first friend of Stoyan is {0}", stoyan[0]);
- DoSomethignElse();
- // Person.counter = 5000;
- Console.WriteLine("The population of my little kingdom is {0}", Person.Counter);
- Person plamen = new Person(18, "Plamen");
- // stoyan.only4Read = 1000;
- Console.WriteLine("only4Read = {0}", Person.only4Read);
- Console.WriteLine("National Income {0}", Person.CalculateNationalIncome());
- }
- static void DoSomethignElse()
- {
- Person gabi = new Person("Gabi", 18);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement