Why is this not allowed in C++?
Here is my code - #include<iostream> using namespace std; class base { private: public: void sid() { cout<<"base"; } }; class derived : private base { private: public: void sid() { cout<<"derived"; }...
Here is my code - #include<iostream> using namespace std; class base { private: public: void sid() { cout<<"base"; } }; class derived : private base { private: public: void sid() { cout<<"derived"; }...