Wednesday, March 28, 2007

'friend' Element and 'operator'

A private member will only be accessible to functions that are members of that class and to functions and classes explicitly granted access permission by the class ("friends").
friend A;
friend A::foo();

Inheritance of operator.
int operator +(int, int);

No comments: