In the previous chapters we wrote many programs using “Ask” functions which asks for program input and returned these values to the calling function. Why did we not call these functions “Get” functions?

What will be an ideal response?

It is important to name functions clearly as to their task. The Ask functions actually asked the user for input via cout and cin/getline statements. The Get function has a special meaning in C++, as the name of the function that returns class data to a calling function via an object.

Computer Science & Information Technology

You might also like to view...

Match the following terms with their descriptions

6. Script kiddies a. routinely held conferences to discuss their exploits and successes 7. Cybercriminal organizations b. target data which is valuable on its face 8. Crackers c. are the lowest life form of cybercriminal 9. Phreakers d. used by law enforcement officials to refer to individuals intent on wreaking havoc via the Internet 10. Cyberpunks e. groups comprised of criminally minded individuals who have used the Internet to communicate, collaborate, and facilitate cybercrime

Computer Science & Information Technology

A fiber that supports many optical waveguide modes.

What will be an ideal response?

Computer Science & Information Technology