static void Main()
 {
     Person firstPerson = new Person("Pesho", 25);
     Person secondPerson = new Person("Gerasim");
     Console.WriteLine(firstPerson.ToString());
     Console.WriteLine(secondPerson.ToString());
 }
示例#2
0
 static void Main()
 {
     Person firstPerson = new Person("Gosho");
     Console.WriteLine(firstPerson);
     Person secondPerson = new Person("Pesho", 26);
     Console.WriteLine(secondPerson);
 }
 static void Main()
 {
     var person = new Person() { Name = "Ivan", Age = 18 };
     var anotherPerson = new Person() { Name = "Gosho" };
     Console.WriteLine(person.ToString());
     Console.WriteLine(anotherPerson.ToString());
 }
示例#4
0
        static void Main()
        {
            var pesho = new Person("Pesho");
            var gosho = new Person("Gosho", 22);

            Console.WriteLine(pesho);
            Console.WriteLine(gosho);
        }
        static void Main()
        {
            var personOne = new Person("Pesho");
            var personTwo = new Person("Bai Ivan", 53);

            Console.WriteLine(personOne);
            Console.WriteLine(personTwo);
        }
示例#6
0
        static void Main()
        {
            Person firstPerson = new Person("Stamat Ivanov");
            Person secondPerson = new Person("Pesho Georgiev", 23);

            Console.WriteLine(firstPerson.ToString());
            Console.WriteLine(secondPerson.ToString());
        }
 static void Main(string[] args)
 {
     Person peshoPerson = new Person("Pesho", 21);
     Console.WriteLine(peshoPerson);
     Person goshoPerson = new Person("Gosho", null);
     Console.WriteLine(goshoPerson);
     Person mimiPerson = new Person("Mimi");
     Console.WriteLine(mimiPerson);
 }
示例#8
0
        static void Main()
        {
            Person kris = new Person("Kris");
            Person kristian = new Person("Kristian", 34);

            Console.WriteLine(kris);
            Console.WriteLine();
            Console.WriteLine(kristian);
        }
        static void Main()
        {
            var firstPerson = new Person("Jennifer");
            var secondPerson = new Person("Anna", 21);

            Console.WriteLine(firstPerson);
            Console.WriteLine();

            Console.WriteLine(secondPerson);
            Console.WriteLine();
        }
示例#10
0
        static void Main()
        {
            Person[] persons = new Person[]
            {
                new Person("Pesho Peshev", 19),
                new Person("Gosho Goshev", 20),
                new Person("Nikolai Kostov"),
                new Person("Svetlin Nakov"),
                new Person("Ivo Kenov"),
                new Person("Doncho Minkov"),
            };

            for (int i = 0; i < persons.Length; i++)
            {
                Console.WriteLine(persons[i]);
            }
        }
示例#11
0
 public static void Main()
 {
     Person person = new Person("Kolio", null);
     Console.WriteLine(person);
 }
示例#12
0
 static void Main(string[] args)
 {
     Person gosho = new Person("");
     Console.WriteLine(gosho.ToString());
 }