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...
Match the following Word extensions to their meanings:
I. .dotx II. .docx III. .dotm IV. .dot A. Word 2013 macro-enhanced template B. Word 2013 template C. Word 2013 document D. Word versions prior to 2010 template
Computer Science & Information Technology
Clock speed is measured in gigahertz (GHz).
Answer the following statement true (T) or false (F)
Computer Science & Information Technology