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 App3b
- {
- class Program
- {
- static void Main(string[] args)
- {
- // int counter = 0;
- Human person1 = new Human(50, "Stoyan");
- // person1.counter++;
- // counter++;
- Human person2 = new Human("Ivan", 20);
- // counter++;
- Human person3 = new Human();
- // counter++;
- // Console.WriteLine("My name is {0}. My age is {1}", person1.Name, person1.Age);
- // Console.WriteLine("My name is {0}. My age is {1}", person2.Name, person2.Age);
- Human.nationality = "Angels";
- Console.WriteLine(Human.PI);
- person1.IntroduceYourSelf("verbous");
- person2.IntroduceYourSelf();
- person3.IntroduceYourSelf();
- System.Console.WriteLine(person1.onlyRead);
- Console.WriteLine("The population is {0}", Human.counter);
- Console.WriteLine("Hello 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