- A class can be inherited by using the keyword extends.
- The class which is inherited is called Super class or Parent class.The class which does the inheritance is called Subclass.
- The private members of the super class are cannot be accessed by the sub class.
Is there any other possibilities for accessing private variables in subclass???
ReplyDeleteThere is no other possibility to access the Private members of a class.
ReplyDelete