cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Private Functions
Private Functions
Nov 16, 2009 at 5:15pm UTC
mcleano
(922)
What is the need for private member functions?
Nov 16, 2009 at 5:37pm UTC
jsmith
(5804)
Private member functions are functions that are inaccessible to both the user and derived classes.
Nov 16, 2009 at 5:59pm UTC
firedraco
(6243)
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.
Nov 16, 2009 at 8:56pm UTC
mcleano
(922)
Thankyou!
Topic archived. No new replies allowed.