protected instance method in the superclass can be made public, but not private, in the subclass.
Doing so, will generate compile-time error.
Final Methods not Being Overridden
If we don’t want a method to be overridden, we declare it as final.
|
|