Categories

Oct 16, 2019 in Design Patterns

Q:

 Which of the following describes the Composite pattern correctly?

A - This pattern builds a complex object using simple objects and using a step by step approach.

B - This pattern is used where we need to treat a group of objects in similar way as a single object.

C - This pattern hides the complexities of the system and provides an interface to the client using which the client can access the system.

D - This pattern is primarily used to reduce the number of objects created and to decrease memory footprint and increase performance.

1 Answer

Oct 16, 2019

Answer : B

Explanation

Composite pattern is used where we need to treat a group of objects in similar way as a single object.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Oct 16, 2019 in Design Patterns
Oct 16, 2019 in Design Patterns
Oct 16, 2019 in Design Patterns
...