volume_mute

Interface Specification

publish date2026/06/12 07:12:26.975515 UTC

volume_mute

Which of the following statements about interface specification in object-oriented design are TRUE? Select ALL that apply.

Correct Answer

(1) Interfaces must be specified so that objects and subsystems can be designed in parallel
(2) Interfaces can be specified in UML using the «interface» stereotype in a class diagram notation - with no attribute section
(3) The same object may have several interfaces, each being a different viewpoint on the methods it provides
(4) Hiding data representation in an interface means that it can be changed without affecting objects that use that data

Explanation

Interface specification facts: interfaces must be specified to enable parallel design of objects and subsystems; interfaces are specified in UML using the «interface» stereotype (no attributes section - data representation is hidden); the same object may have multiple interfaces; hiding data representation allows it to change without affecting users. The false statement is that interfaces should include attributes - interfaces specifically exclude attributes to hide data representation.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears