Beispiel #1
0
        static void Main(string[] args)
        {
            Person newPerson = new Person();
            newPerson.name = "Asdf Asdfov";

            Console.WriteLine(newPerson);
        }
Beispiel #2
0
        static void Main()
        {
            Person one = new Person("Ivan Ivanov", 20);
            Person two = new Person("Pesho Peshov");

            Console.WriteLine(one);
            Console.WriteLine(two);
        }
Beispiel #3
0
        static void Main()
        {
            Person p = new Person("Bobi");
            Console.WriteLine(p);

            Person secondP = new Person("Kali", 15);
            Console.WriteLine(secondP);
        }