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 Person1a
- {
- class Program
- {
- static void Main(string[] args)
- {
- int i = 0;
- Person person1 = new Person("Stoyan", 50);
- i++;
- Person person2 = new Person();
- i++;
- Person person3 = new Person(20, "Rayna");
- i++;
- // person1.Name = "Stoyan";
- // person1.Age = 50;
- // person2.Name = "Rayna";
- // person2.Age = 20;
- /*
- Console.WriteLine("My name is {0}. I am {1} old.",
- person1.Name, person1.Age);
- Console.WriteLine("My name is {0}. I am {1} old.",
- person2.Name, person2.Age);
- Console.WriteLine("My name is {0}. I am {1} old.",
- person3.Name, person3.Age);
- */
- Person.nationality = "German";
- person1.IntroduceYourSelf();
- person2.IntroduceYourSelf();
- person3.IntroduceYourSelf();
- System.Console.WriteLine(Person.counter);
- Console.WriteLine("Hello World");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement