Overriding Member Methods (Class Modifiers)
Previous | Home | Next |
The access specifier for an overriding method can allow more, but not less, access than the overridden method.
A protected instance method in the superclass can be made public, but not private, in the subclass.
If the subclass has instance method with modifier and superclass also has instance method with same modifier
than the method in superclass will override .
Previous | Home | Next |