"Functions" Please respond to the following:

User Generated

crgvgfba

Computer Science

Description

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.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

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.


Anonymous
Great! 10/10 would recommend using Studypool to help you study.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags