suppose I have this code:
class D : public Base1, Base2 {}
My question is. Obviously class D is public derived from Base1, but what about Base2? Is is private derived? Or also public derived?
I checked some websites but I did no find article about this.
thank you!
It’s private derived, inheritance method should be declared for each base class individually, if not, then it’s private by default.