You can only use this statement in the declaration part of a class. It defines the public
of the class
class. All components of the class that are declared after the
PUBLIC SECTION are accessible from outside the class, in their subclasses, and in the class itself as long as this permitted by the
package concept. Public methods in particular can be redefined in subclasses.