Employee is a base class and HourlyWorker is a derived class, with a redefined non-virtual print function. Given the following statements, will the output of the two print function calls be identical?

HourlyWorker h;
Employee *ePtr = &h;


ePtr->print();
ePtr->Employee::print();

a. Yes.
b. Yes, if print is a static function.
c. No.
d. It would depend on the implementation of the print function.


a. Yes.

Computer Science & Information Technology

You might also like to view...

_____ is online, real-time communication between two or more people who are connected to the Internet.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Match the following terms to their meanings:

I. Web site for exchanging files A. pop-ups II. Customized advertisements that appear on Web sites B. peer-to-peer file sharing III. Anything that you use or download from a Web site C. cookie IV. Stores information about you and your preferences D. Web content V. Protocol that encrypts the data sent between you E. https and a Web server

Computer Science & Information Technology

A command button is triggered by the On Click event

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following Windows operating systems integrates cloud environments and distributed access?

A. Windows XP B. Windows 7 C. Windows 8 D. Windows Server 2012

Computer Science & Information Technology