Multiple Choice
If the following is from the method section of a UML diagram, which of the statements below 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
Q23: An enumerated data type is actually a
Q24: The "has a" relationship is sometimes called
Q25: A class that is defined inside another
Q26: Java automatically stores a _ value in
Q27: Given the following method header, what will
Q29: You cannot use the fully-qualified name of
Q30: If a class has a method named
Q31: You cannot use the == operator to
Q32: If you attempt to perform an operation
Q33: Which of the following is not true