Classes

Exercise: Add a GetAge method to your class

Goal

Add a method called GetAge which has the method body: "return DateTime.Now.Year - DateOfBirth.Year;"

 

Page 16 of 20