Machine-translated by Google. Questions are authored in English.
Top

Discussion

Among the attributes of good object oriented design, two desirable and most important attributes are :

  • A.No. of children, nature of the object
  • B.No. of children, response for a class
  • C.Response for a class, nature of object
  • D.Response for a class, attributes of objects

Answer: B

The key gives No. of children, response for a class.

These two attributes are metrics of the Chidamber and Kemerer object-oriented suite. 'Number of children' (NOC) counts the direct subclasses of a class and so measures the breadth of the inheritance hierarchy; 'response for a class' (RFC) counts the methods that can run in answer to a message sent to an object of the class and so measures coupling and complexity. A study of open-source C++ systems found these two to be the CK metrics that predicted defects significantly.

The other options each pair one of them with a term that is not a CK metric ('nature of the object', 'attributes of objects'), so option B is the only one made of two standard metrics. The ranking of these two as 'the most important' is not universal: other studies stress different CK metrics and the results depend on the data set, so this answer follows the official key and the metric names it uses.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.