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...

What-if analysis is the process of substituting values to see the effect on dependent calculations

Indicate whether the statement is true or false

Computer Science & Information Technology

A pencil symbol in the record selector indicates that _____.

A. a record is selected B. changes to the record are not yet saved C. this is the first record in the table D. none of the above

Computer Science & Information Technology