SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Adapter
|
|
Bridge
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -The bridge design pattern can be used to decouple an abstraction from its implementation so that both can be changed independent of each other. Design patterns are proven solutions to recurring problems and complexities that evolve in software designs.
Detailed explanation-2: -GoF Definition: Define an interface for creating an object, but let subclasses decide which class to instantiate. The factory method lets a class defer instantiation to subclasses.
Detailed explanation-3: -Structural design pattern is a blueprint of how different objects and classes are combined together to form a bigger structure for achieving multiple goals altogether. The patterns in structural designs show how unique pieces of a system can be combined together in an extensible and flexible manner.