Say that i had two classes, A and B. Now B is structurly the same to A and a lot but not all of A's functionality is the same for B.
This would make B very conducive to be publically inherited from A. The problem is that not all of A's functionality (a few members but none of the operators) should be included in B. Should B be pubically inherited from A?
Furthermore, if we should inherit, would it be a good strategy to make all members that should be inherited into A declared as private in B?




Reply With Quote