Multiple Choice
Which of the following code snippets denotes that the Pen class depends on the Ink class?
A) public class Pen extends Ink
B) public class Ink extends Pen
C) public class Pen
{
Private Ink anInk;
}
D) public class Ink
{
Private Pen aPen;
}
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: In a UML diagram, inheritance is denoted
Q26: When using the CRC method, other classes
Q32: Under which of the following conditions would
Q32: Consider the following code snippet: public class
Q33: You are designing an application to support
Q34: Consider the following code snippet: public class
Q38: Consider the following code snippet: public class
Q49: You are designing a software solution for
Q95: When using UML to create state diagrams,
Q102: In a UML diagram, aggregation is denoted