correct way to use static
Friend is just access. You could use public and let everything access it, but it would still have to return a pointer or a static or maybe a reference? The derived class makes a new instance of the base class, that's why you have to pass parameters when there are any.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement