Private inheritance? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Private inheritance?

Does have somebody any idea for what can I use private inheritance? Actually there is no possible to use any members of base class. Thanks

1st Mar 2017, 9:05 PM
Highman
Highman - avatar
2 Answers
+ 1
Hi JPM, thanks for your answer. Course, but is there any case for using inheritance with a private access to base class? Thanks
1st Mar 2017, 8:50 PM
Highman
Highman - avatar
+ 1
Thanks for all,I've also found some comments in different discusions.So,private inheritance is also good and very useful practise how to do the class as final (no overrideable) as in Java or sealed in C#. But now the C++11 just contains key word for it.
4th Mar 2017, 4:45 PM
Highman
Highman - avatar