This loads the package.
All members of a class that are not explicitly declared as Protected or Private are Public. Themodifier Public therefore is only needed to clarify that a member is public.
The accessibility for both methods is identical. Both methods can be accessed from everywhere, here from outside the class. Once a member is public, child classes may not narrow the accessibility. We use the qualifier Override to signal a redefinition of functionality of a parent class. In contrast, the same accessibility is allowed.
|