I have a class A with a private variable a. Class B is a subclass of A. In class B_Test, I would like to wrtite something like "B b; b.a;", I put friend class C in both Class A and Class B but it still no works.
Any idea? Thank you.
(Sorry I make a mistake in my code when I post this question. It is solved now). Rod_Algonquin is right. Thank you.)