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...

When you ____________________ a workbook, a dialog box might open, asking whether you want to save the workbook.

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

Computer Science & Information Technology

COGNITIVE ASSESSMENT Which of the following statements is NOT true about object-oriented databases (OODBs)?

A. A voice mail system is an example of a groupware database. B. An object is an item that contains data, as well as the actions that read or process the data. C. An OODB stores unstructured data more efficiently than a relational database. D. OODBs can store more types of data and access it faster than relational databases.

Computer Science & Information Technology

In the graph in the accompanying figure, the values of ____________________ tones are the original values of the tones in the image when the Curves adjustment layer is first created.

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

Computer Science & Information Technology

Which statement is false?

a) The compiler uses function prototypes to validate function calls. b) Prior to ANSI C, C did not include function prototypes. c) A function prototype tells the compiler the type of data returned by the function, the number of parameters the function expects to receive, the types of these parameters and the order in which parameters of these types are expected. d) The designers of ANSI C++ borrowed the notion of function proto-types from the developers of C.

Computer Science & Information Technology