Which is the best prototype for a member function of a person class that returns true if the person object’s age is greater than that of another person object. Assume that age is a data member of the person class.

a) bool isOlderThan (const person& p) const;
b) bool isOlderThan (person& p) const;
c) bool isOlderThan (person p) const;
d) bool isOlderThan (const person& p);

a) bool isOlderThan (const person& p) const;

Computer Science & Information Technology

You might also like to view...

Which option provides the best description of the first action to take during incident response?

A. Disconnect the affected computers. B. Follow the procedures in the incident response plan. C. Determine the source and vector of the threat. D. Alert the third-party incident response team.

Computer Science & Information Technology

_______ attributes define how browsers should render the associated elements in Web pages.

A. Prohibited B. Presentational C. Directional D. Specific

Computer Science & Information Technology