is it possible for a derived class to have friend functions of a base class?
Im trying to allow only 2 functions of the derived class access the base classes privates. the base class was inherited publicly.
I know I could just make mutators functions in the base class, but I want to try doing this without giving main the ability to alter the values simply by calling the base class.
you could supply accessor functions within protected scope in the base class that the derived class could use, but as far as limiting access to two functions of the derived class I'm not sure if that would be possible. even if it is possible, the solution would likely be complicated and ugly.
forgot about even using protected. thanks