13.1k views
0 votes
Bradley is working on a program that uses different classes in specific relationships. Help him remember what these relationships are called.

(blank) is when a class uses objects of another class.

A. Aggregation
B. Inheritance
C. Dependency

(blank) is a special case in which one object “owns” another.

A. Dependency
B. Composition
C. Aggregation

User MattC
by
7.0k points

1 Answer

5 votes

Answer:

First one is INHERITANCE. Second one is AGGREGATION.

User Dimitar Mazhlekov
by
7.5k points