Private Functions

What is the need for private member functions?
Private member functions are functions that are inaccessible to both the user and derived classes.

They are there so if you have some sort of function that the class would want to use (e.g. a right-rotate for a red-black tree), but you don't want users to be able to call it.
Thankyou!
Topic archived. No new replies allowed.