Multiple Choice
If the following is from the method section of a UML diagram, which of the following statements is TRUE?
+ add(object2:Stock) : Stock
A) This is a private method named add that accepts and returns objects of the Stock class.
B) This is a private method named Stock that adds two objects.
C) This is a public method named add that accepts and returns references to objects in the Stock class.
D) This is a public method named Stock that adds two objects.
Correct Answer:

Verified
Correct Answer:
Verified
Q13: Both instance fields and instance methods are
Q15: The key word this is the name
Q26: You can declare an enumerated data type
Q28: You cannot use the fully-qualified name of
Q29: A deep copy of an object:<br>A) is
Q30: The term for the relationship created by
Q32: If you attempt to perform an operation
Q33: If the following is from the method
Q36: When an object reference is passed to
Q36: Assuming the following declaration exists: enum Tree