Answer the following statements true (T) or false (F)
a) Base-class constructors are not inherited by derived classes.
b) A has-a relationship is implemented via inheritance.
c) A Car class has is-a relationships with the SteeringWheel and Brakes classes.
d) Inheritance encourages the reuse of proven high-quality software.
e) When a derived class redefines a base-class method by using the same signature and return
type, the derived class is said to overload that base-class method.
a) True.
b) False. A has-a relationship is implemented via composition. An is-a relationship is
implemented via inheritance.
c) False. These are examples of has-a relationships. Class Car has an is-a relationship
with class Vehicle.
d) True.
e) False. This is known as overriding, not overloading.
You might also like to view...
Which application would be the best choice for creating a budget?
a. Database b. Personal information manager c. Spreadsheet d. Word processor
What is the difference between kerning and tracking?
What will be an ideal response?
The ActionScript language is very similar to the Web language ____________________.
Fill in the blank(s) with the appropriate word(s).
Identify the statistical function used if the rank value returned for duplicate values was 8.5?
A) RANK B) RANK.EQ C) RANK.SP D) RANK.AVG