Inheritance.
public
, protected
.
is-a or inheritance (for public
inheritance).
has-a or composition or aggregation.
hierarchical.
public
.
private
.
multiple inheritance.
constructor.
public
, protected
.
protected
, protected
.
True.
False. A has-a relationship is implemented via composition. An is-a relationship is implemented via inheritance.
False. This is an example of a has-a relationship. Class Car
has an is-a relationship with class Vehicle
.
True.