PDA

View Full Version : Is it possible?



Jeffb
10th February 2012, 01:27
Hi guys

I've been landed with a class A that contains a public pointer to class B.
I can't change class B to be private.
But is it possible to declare one of class B's methods as private within class A without declaring the whole of class B private?

Thanks
Jeff

MarekR22
10th February 2012, 07:43
make problematic method in class B private and add in class B friendship with class A.