Multiple Choice
If the following is from the method section of a UML diagram, which of the following statements is TRUE?
+ equals(object2:Stock) : boolean
A) This is a private method that receives two objects from the Stock class and returns a boolean value.
B) This is a public method that accepts a Stock object as its argument and returns a boolean value.
C) This is a private method that returns a boolean value.
D) This is a public method that returns a Stock object.
Correct Answer:

Verified
Correct Answer:
Verified
Q13: Both instance fields and instance methods are
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
Q31: If the following is from the method
Q32: If you attempt to perform an operation
Q36: When an object reference is passed to
Q36: Assuming the following declaration exists: enum Tree
Q37: What will be returned from a method,
Q43: If a class has a method named