Difference between private, public, and protected inheritance
What is the difference between public, private, and protected inheritance in C++? All of the questions I’ve found on SO deal with specific cases. 16 s 16 class A { public: int x; protected: int y; private: int z; }; class B : public A { // x is public // y is protected // … Read more