示例#1
0
        static void Main(string[] args)
        {
            Person firstPerson = new Person("Petar", 20);
            Person secondPerson = new Person("Georgi");

            Console.WriteLine("Information about the first student: ");
            Console.WriteLine(firstPerson);

            Console.WriteLine("Information about the second person: ");
            Console.WriteLine(secondPerson);
        }
示例#2
0
 static void Main(string[] args)
 {
     Person p = new Person();
     p.Name = "Gosho";
     Console.WriteLine(p);
 }
 static void Main()
 {
     Person pers = new Person("Pesho");
     Console.WriteLine(pers);
 }