Describe the roles of the three sections of CRC (class responsibility collaborator) cards?
What will be an ideal response?
• Class name identifies the data object uniquely.
• Responsibilities are the attributes and operations for the class.
• Collaborators are those classes required to provide a class with information needed to complete a responsibility.
You might also like to view...
Keyword is used for constants whose values cannot be determined at compile time.
a) Const b) ReadOnly c) Shared d) None of the above.
Which of the following statements are correct for recursion?
a) Recursion is available only in the C and C++ languages. b) Recursion is available in all programming languages. c) Recursion is available in most modern programming languages, including C++. d) Recursion is a preprocessor technique e) Recursion, if used with care can be a useful programming technique.
Class Arrays methods sort, binarySearch, equals and fill are overloaded for primitive-type arrays and Object arrays. In addition, methods __________ and __________ are overloaded with generic versions.
a. sort, binarySearch. b. sort, fill. c. binarySearch, equals. d. binarySearch, fill.
Suppose the nested transaction model were extended so that subtransactions were distributed over different sites in a network. At what point in the execution of a distributed nested transaction would a cohort enter the prepared state? Explain your reasoning.
What will be an ideal response?