Do friends violate encapsulation?