Describe the role of class-oriented metrics in assessing the quality of an OO system.

What will be an ideal response?


The class is the fundamental unit of an OO system. The number of methods and their complexity are directly related to the effort required to test a class. The depth of the inheritance tree can be used to estimate the complexity of the class hierarchy. It is important to strive to have low coupling between classes and high cohesion within each class. If large class sizes are detected during OOA review, the classes should partitioned to improve the modularity of the system and make it easier to maintain.

Computer Science & Information Technology

You might also like to view...

In a flowchart, rectangles are used as ____________ to represent the steps in which the program performs some process on data, such as a mathematical calculation.

a. processing symbols b. output symbols c. input symbols d. terminal symbols

Computer Science & Information Technology

The String class allows you to ______ strings.

a) search b) retrieve characters from c) replace characters in d) All of the above.

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. To account for the null terminator stored at the end of each C-string, the strlen function returns the number of characters in its argument, plus one. 2. There exist C++ stream classes that write and read in-memory strings. 3. To use the ostring stream class, you must include the mem string stream header file. 4. The >> operator can be used to convert a value of type double to an equivalent string object stored in memory. 5. Although C++ provides ample library functions to handle numeric values, we must write all of our own functions to manipulate character values.

Computer Science & Information Technology

When you open a file for output, if the file already exists, the computer erases the contents of the file before writing any data to it.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology