Visibility and Accessibility Modifiers
Exercise: Use the private modifier
Goal
Modify the example class Person
- Make the class private
- Add a private method to the example class that contains the method body "return Age.ToString()".
Page 5 of 18
Modify the example class Person