public class Program
{
public static void Main()
{
Dog foo = new Dog("bar");
Console.WriteLine(foo);
}
public class Dog
{
public string Name { get; set; }
public int Age { get; set; }
public string Motto { get; set; }
public Dog(string Name) : this(Name, 1, "Happy") {}
public Dog(string name, int age) : this( name, age, "Happy") {}
public Dog(string Name, int Age, string Motto)
{
this.Name = Name;
this.Age = Age;
this.Motto = Motto;
}
public override string ToString()