![]() |
![]() |
![]() |
![]() |
![]() |
|
The names of the getMinutes, setMinutes, getHours, and
setHours methods, with the get and set prefixes, makes
it clear that the methods are getters and setters, but the use of
get and set is a convention, rather than a language-enforced imperative. You
should follow the convention, however, because certain Java programming
environments expect getters and setters to have names that begin with
get and set.