0
2 classes base class - A & derived - B .How to access private member(n) which is declared in A to B as A::n
2 Respostas
+ 1
If you want to access it, why is it private?
0
Either B inherit from A or B is a friend class of A (both ways are well explained in the C++ course of Sololearn)