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 App4a
- {
- class Program
- {
- static void Main(string[] args)
- {
- // int counter = 0;
- Human person1 = new Human("Stoyan", 50);
- // counter++;
- Human person2 = new Human(20, "Ivan");
- // counter++;
- Human person3 = new Human();
- // counter++;
- // person1.Name = "Stoyan";
- // person1.Age = 50;
- // person2.Name = "Ivan";
- // person2.Age = 20;
- // 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();
- person3.IntroduceYourSelf();
- IncreasePopulation();
- Console.WriteLine("The population is {0}", Human.counter);
- Console.WriteLine(Human.PI);
- Console.WriteLine(person1.onlyRead);
- Console.WriteLine("Helo World!");
- Console.Read();
- }
- public static void IncreasePopulation()
- {
- // int counter = 0;
- Human person1 = new Human();
- // counter++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement