If a class B is a pubic base class for a derived class D, then an object of class D bears what relationship to class B?
a. A has-a relationship.
b. A fraternal relationship
c. An is-a relationship.
d. There is no relationship here.
c)
Explanation: Part a) is wrong, An HourlyEmployee does not have an Employee. It is an Employee. Part b): There is no “fraternal” relationship in C++ nor object oriented programming.
Computer Science & Information Technology
You might also like to view...
The chapter recommends that the smallest font size in a presentation should be ________ points
A) 24 B) 12 C) 14 D) 18
Computer Science & Information Technology
Which answer is a properly overloaded operator?
A. bool (AddressBk ab) == operator B. (AddressBk ab) == operator bool C. operator bool == (AddressBk ab); D. bool operator == (AddressBk ab);
Computer Science & Information Technology