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 App1b
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine(Human.PI);
- // int counter = 0;
- Human person1 = new Human("Stoyan", 50);
- Console.WriteLine("Only for read = {0}", Human.onlyRead);
- // counter++;
- Human person2 = new Human(20, "Ivan", "Petko", "Niki");
- // counter++;
- Human person3 = new Human();
- // counter++;
- // 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("dummy");
- person2.IntroduceYourSelf();
- Console.WriteLine("And my best friend is {0}", person2.GetFriend(0));
- person3.IntroduceYourSelf();
- IncreasePopulation();
- IncreasePopulation();
- Console.WriteLine("My population is {0}", Human.counter);
- Console.WriteLine("The National Income is {0}", Human.CalculateNationalIncome());
- Console.WriteLine("Hello World!");
- /*
- string input = Console.ReadLine();
- Console.WriteLine(input);
- try
- {
- int validated = Int16.Parse(input);
- Console.WriteLine("Sled parsing chisloto e {0}", validated);
- }
- catch (Exception e)
- {
- Console.WriteLine("Error");
- }
- */
- Console.Read();
- }
- public static void IncreasePopulation()
- {
- Human person1 = new Human("Pesho", 15);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement