1.

Can A Private Method Of A Superclass Be Declared Within A Subclass?

Answer»

Sure. A private field or method or INNER class belongs to its DECLARED class and hides from its SUBCLASSES. There is no way for private stuff to have a runtime overloading or overriding (POLYMORPHISM) features.

Sure. A private field or method or inner class belongs to its declared class and hides from its subclasses. There is no way for private stuff to have a runtime overloading or overriding (polymorphism) features.



Discussion

No Comment Found