+ 1

Is private method inherited by super class?

9th Sep 2016, 3:49 PM
Pooja Ghetia
6 ответов
+ 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.
9th Sep 2016, 4:02 PM
Zen
Zen - avatar
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
11th Nov 2016, 4:58 PM
Nofel Tiani
Nofel Tiani - avatar
- 1
no
9th Sep 2016, 4:15 PM
bayram akdemir
bayram akdemir - avatar
- 1
what is OOP ?
9th Sep 2016, 4:35 PM
peyvand azizi
peyvand azizi - avatar
- 1
oop means object oriented programming
9th Sep 2016, 4:38 PM
Pooja Ghetia
- 1
opp is object oriented programming
9th Sep 2016, 4:46 PM
bayram akdemir
bayram akdemir - avatar