Assume component A provides an interface P and requires an interface R. In order for a component B to be substituted for component A, what must be true?

Posted by: Pdfprep Category: OMG-OCUP2-INT200 Tags: , ,

Assume component A provides an interface P and requires an interface R. In order for a component B to be substituted for component A, what must be true?
A . The interface that B requires must be type conformant with respect to the interface that A provides.
B . The interface that B requires must be type conformant with respect to the interface that A requires, and the interface that B provides must be type conformant with respect to the interface that A provides.
C . The interface that A requires must be type conformant with respect to the interface that B provides.
D . Components must be related to each other via a dependency.

Answer: B

Leave a Reply

Your email address will not be published.