static void Main() { Person rado = new Person("Gosho", 16); Person radorado = new Person("GoshoGosho", null); Console.WriteLine(rado.ToString()); Console.WriteLine(radorado.ToString()); }
static void Main() { Person pesho = new Person("Pesho", 20); Person gosho = new Person("Gosho"); Console.WriteLine(pesho.ToString()); Console.WriteLine(gosho.ToString()); }
static void Main() { Person pesho = new Person("Pesho"); Person aivan = new Person("Aivan",43); Console.WriteLine(pesho.ToString()); Console.WriteLine(aivan.ToString()); }
public static void Main() { Person person = new Person("Pesho"); Console.WriteLine(person.ToString()); Person secondPerson = new Person("Gosho", 25); Console.WriteLine(secondPerson.ToString()); }
static void Main() { Person pesho = new Person("Pesho"); //new Person("Pesho",5); Console.WriteLine(pesho.Age); Console.WriteLine("Pesho info:"); Console.WriteLine(); Console.WriteLine(pesho.ToString()); }
public static void Main() { var person = new Person("Billy"); Console.WriteLine(person.ToString()); Console.WriteLine(); var someOtherPerson = new Person("Wayne", null); Console.WriteLine(someOtherPerson); Console.WriteLine(); var otherPerson = new Person("Simon", 30); Console.WriteLine(otherPerson); }