Multiple Choice
Which of the following code snippets denotes that the Kitchen class aggregates the Dish class?
A) public class Kitchen extends Dish
B) public class Dish extends Kitchen
C) public class Kitchen
{
Private Dish[] dishes;
}
D) public class Dish
{
Private Kitchen myKitchen;
}
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q21: _ is often described as the has-a
Q37: How does a UML diagram denote a
Q61: Which of the following is the most
Q63: When using CRC cards, UML diagrams should
Q80: In a UML diagram, the relationship symbol
Q81: Which of the following code snippets denotes
Q83: Select a code segment to complete the
Q85: Which of the following would be an
Q86: Consider the following code snippet: public class
Q88: Which statement correctly describes the class relationship