Visibility and Accessibility Modifiers

Exercise: Use the public modifier

Goal

Modify the example class

  1. Make the class public
  2. Add a public method named 'GetAge' that returns an int.
Page 3 of 18