public Dog(string breed, string size, string color, int age)
return ("The breed is " + this.getBreed() + " and the size, color and age are " + this.getSize()
+ ", " + this.getColor() + " , " + this.getAge());
public static void Main(String[] args)
Dog cocker_spaniel = new Dog("Cocker Spaniel", "Medium","Brown", 1);
Console.WriteLine(cocker_spaniel.Output());