your can use friend class to do it .

eg.
class a
{
friend class b;
functionA();
}

b::fuctionB()
{
fuctionA();
}