A Cup class, Mug, and Cocoa class have what type of C++ relationships?

A. The Cocoa uses a Cup, and the Cup is a Mug.
B. The Mug has a Cocoa, and the Cup is a Mug.
C. The Cocoa has a Cup, and the Mug is a Cup
D. The Mug has Cocoa, and the Mug is a Cup.

D. The Mug has Cocoa, and the Mug is a Cup.

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. An advantage of inheritance over interfaces is that only inheritance provides the is-a relationship. b. Objects of any subclass of a class that implements an interface can also be thought of as objects of that interface type. c. When a method parameter is declared with a subclass or interface type, the method processes the object passed as an argument polymorphically. d. All objects have the methods of class Object.

Computer Science & Information Technology

To assign a value to an attribute, you use a(n) ____ sign.

A. pound B. equal C. greater than D. less than

Computer Science & Information Technology