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.

c. This is a public method named add that accepts and returns references to objects in the Stock class.

Computer Science & Information Technology

You might also like to view...

The worst case in linear search is that every element must be checked to determine whether the search key exists, which occurs if the search key ________.

a. is the last array element b. is not present c. is the last array element or is not present d. None of the above.

Computer Science & Information Technology

Krug says that if you have room in your head for only one usability principle, it should be ___________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology