next up previous
Next: When should I use Up: class and struct Previous: When should I use

When should I use a static method or a friend function?

A static method has full access to the members of a single class. A function can be the friend of more than one class, and therefore can have access to the members of one of more classes.



Alexis Angelidis (PhD) 2005-01-11