0

What happend when we derive a class with private access specifier

like class sum:private xyz

4th May 2017, 2:35 PM
Sujit Singh
Sujit Singh - avatar
4 ответов
+ 1
All the private and protected members will not be inherited. Only public members will be inherited.
4th May 2017, 3:32 PM
Erick Mwenda Njagi
Erick Mwenda Njagi - avatar
0
Is it possible?
4th May 2017, 3:11 PM
Sammi
Sammi - avatar
0
protected data members can derive
5th May 2017, 8:09 AM
Sujit Singh
Sujit Singh - avatar
0
but is it possible to derive private members
5th May 2017, 8:09 AM
Sujit Singh
Sujit Singh - avatar