wingman007

2015_OOP_Program

Apr 8th, 2015
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.12 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace World1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Person person1 = new Person("Stoyan");
  14.             // person1.Name = "Stoyan";
  15.             // person1.Age = 51;
  16.  
  17.             Person person2 = new Person(20, "Mario", "Bobi", "Kristian", "Stoyan", "Anton");
  18.             // person2.Name = "Mario";
  19.             // person2.Age = 20;
  20.  
  21.             Person person3 = new Person();
  22.             person1.IntroduceYourSelf();
  23.             person2.IntroduceYourSelf();
  24.             person3.IntroduceYourSelf();
  25.  
  26.            
  27.             /*
  28.             Console.WriteLine("My name is {0}! I am {1} years old! My balance is {2}",
  29.                 person1.Name, person1.Age, person1.Balance);
  30.  
  31.             Console.WriteLine("My name is {0}! I am {1} years old!",
  32.                 person2.Name, person2.Age);
  33.  
  34.             Console.WriteLine("My name is {0}! I am {1} years old!",
  35.                 person3.Name, person3.Age);
  36.             */
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment