Question 61 / 90:  In the following code segment, what is the relationship between the Store class and the MerchandiseItem class?
public class Store {

MerchandiseItem item;

public Store() {

item = new MerchandiseItem();

}

}

A  Direct association
B  Temporary association
C  Composition association
D  Aggregation association
<< First < Previous Next > Last >>
Explanation:

C. The Store object is “composed-of” the MerchandiseItem object. There is a strong relationship between the two classes, and the Store object has a lifecycle responsibility for the MerchandiseItem object.

A, B, and D are incorrect.

Exam Home Page
https://www.jobilize.com/quiz-my-oca-mock-exam-by-mike-wolf

My OCA Mock

Author:

Access: Public Instant Grading

Ask
Yacoub Jayoghli
Start Quiz
Megan Earhart
Start Quiz
Vanessa Soledad
Start Exam
Tess Armstrong
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-my-oca-mock-exam-by-mike-wolf" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>