Classes

Exercise: Add a method to your class

Goal

Add a method named Speak to your Animal class. The method should contain the following: Console.WriteLine("The dog says woof!");. The method should not return anything.

 

Page 8 of 20