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) An is-a relationship.
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...
Which component of an acceptable use agreement defines (and includes examples of) the classification schema adopted by the organization?
A) Introduction B) Data classifications C) Applicable policy statements D) Handling standards
Computer Science & Information Technology
As a modern language, every release of C has had a Boolean type.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology