Beispiel #1
0
        static void Main()
        {
            Person gosho = new Person("Gosho", 25);
            Person pesho = new Person("Pesho");

            Console.WriteLine(gosho);
            Console.WriteLine(pesho);
        }
        static void Main(string[] args)
        {
            Person firstPerson = new Person("Pesho", 21);
            Person secondPerson = new Person("Gosho", null);
            Person thirdPerson = new Person("Ivan");

            Console.WriteLine(firstPerson);
            Console.WriteLine(secondPerson);
            Console.WriteLine(thirdPerson);
        }
        static void Main()
        {
            Console.WriteLine("Task 04 - Person\r\n");

            Person person1 = new Person("Pesho Peshov");
            Person person2 = new Person("Gosho Goshov", 25);
            Person person3 = new Person("Bai Dragan", 99);

            Console.WriteLine(person1);
            Console.WriteLine(person2);
            Console.WriteLine(person3);

            Console.WriteLine("\r\nPress Enter to finish");
            Console.ReadLine();
        }