![]() |
![]() |
![]() |
![]() |
![]() |
|
Public instance variables and public instance
methods are said to constitute the class's public interface. Once
you have marked the minutes instance variable private,
instead of public, the only way to get at that minutes
instance variable from methods defined outside the Attraction class
is via the public getter and setter in the Attraction class's public
interface.