Can we call private functions?

What I think is that we will invoke a public function which will invoke a private function of class. Any other way?

Why to make private function?
To call something which isn't meant to be called by user, but widely used by methods of class.
Example: reallocate() function in container classes.
Friends of a class can access its private members.
So there is no other way to utilize private function except through public function or friend function?
Or other private function.
How the other private function will be envoked?
By public functions, protected functions, friend functions, friend classes...
I gave you an example of function ( reallocate() ) you shouldn't ever give users access to, but which can be called by many public function: for example: reserve(), push_back(), shrink_to_fit()...
Thanks!
Topic archived. No new replies allowed.