Member function performs most of the work in a class, and at times it is
necessary to create a private function. Describe a situation in which
you would create a private member function.
Good real-life example is when a public member-method is too long/complex and one wants to break into smaller pieces (methods). These helper methods would normally be private.
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?