1.

The ___________ is a software design pattern that allows the interface of an existing class to be used as another interface.(a) Adapter Pattern(b) Bridge Pattern(c) Decorator Pattern(d) Composite PatternI had been asked this question in an interview.I'd like to ask this question from Comparing Stubs, Mock Objects and In-container Testing in division In-container Testing of JUnit

Answer»

Right answer is (a) ADAPTER Pattern

For explanation I would say: The Adapter DESIGN pattern allows otherwise incompatible classes to PERFORM together by the CONVERSION of the interface of one class into an interface expected by the CLIENTS.



Discussion

No Comment Found

Related InterviewSolutions