Examlex

Solved

Employee Is a Base Class and HourlyWorker Is a Derived

question 2

Multiple Choice

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() ;


Definitions:

Executor or Executrix

Refers to a person appointed by a will to execute the deceased's estate, with executrix being the feminine form.

Died Intestate

Refers to a person who has passed away without having made a legally valid will.

Dies Intestate

Refers to a situation where a person passes away without having made a valid will, leading to the distribution of their assets according to state laws.

Related Questions