Example #1
0
 static void Main()
 {
     Person person = new Person("Ivan", 6);
     Console.WriteLine(person.ToString());
     Person person2 = new Person("Pesho");
     Console.WriteLine(person2.ToString());
 }
        static void Main(string[] args)
        {
            Person man = new Person("Pesho", 56);
            Person manToo = new Person("Gosho");

            Console.WriteLine(man.ToString());
            Console.WriteLine(manToo.ToString());
        }
        static void Main(string[] args)
        {
            Person userPersonOne = new Person("Gosho");
            Person userPersonTwo = new Person("Teodor", 30);

            string testPersonOne = userPersonOne.ToString();
            string testPersonTwo = userPersonTwo.ToString();

            Console.WriteLine(testPersonOne);
            Console.WriteLine(testPersonTwo);
        }
Example #4
0
 static void Main(string[] args)
 {
     Person person1 = new Person("Antoan");
     Console.WriteLine(person1);
 }