In general, constructors, getters, and setters isolate you from the details
of how a class is implemented. Once you have written those instance
methods, you can forget about how they access and assign values; none of
the details, such as whether you have a minutes
or an hours
instance variable, clutter the programs that use attractions.