Sure, although that tendency of those who design classes does have an effect on various measures - such as those related to sensitivity to change.
Also, bear in mind that the probability of (A or...
Type: Posts; User: grumpy
Sure, although that tendency of those who design classes does have an effect on various measures - such as those related to sensitivity to change.
Also, bear in mind that the probability of (A or...
It depends on how much abstraction you're interested in. Access of class members by member functions tends to be more granular than access by friends, simply because it is often easier to get...
I'm not going to write a treatise on friend, but will make a few observations.
1) Friendship is a design and implementation decision, not a decision about how a class (or instances of the class)...