+ 1
Is private method inherited by super class?
6 Réponses
+ 3
The super class is the one you inherit from, so your question doesn't make much sense.
Assuming you meant "by the derived class" or "from the super class", no, private members of the super class aren't inherited, only protected and public members are.
0
zen is true but he forgot to mention one important detail, if the superclass has public methods using the private members, then the sublass can acces the said members by using the public methods
- 1
no
- 1
what is OOP ?
- 1
oop means object oriented programming
- 1
opp is object oriented programming