MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SOFTWARE ENGINEERING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Interfaces model the ____ relationship
A
has-a
B
is-a
C
uses-a
D
None of the above
Explanation: 

Detailed explanation-1: -In UML diagrams, an interface realization relationship is a specialized type of implementation relationship between a classifier and a provided interface. The interface realization relationship specifies that the realizing classifier must conform to the contract that the provided interface specifies.

Detailed explanation-2: -In UML modeling, a realization relationship is a relationship between two model elements, in which one model element (the client) realizes the behavior that the other model element (the supplier) specifies. Several clients can realize the behavior of a single supplier.

Detailed explanation-3: -A dependency is a relationship that states that one thing uses the information and services of another thing, but not necessarily the reverse. Dependency relationship should be used to show that one thing is using another.

Detailed explanation-4: -Type of UML Relationship are Association, Dependency, Generalization, and Realization.

There is 1 question to complete.