Design patterns c interview questions

broken image
broken image

So basically, you have a problem context and the proposed solution for the same. Part 4 Design Pattern FAQs - Bridge pattern, composite pattern, decorator pattern, Façade pattern, chain of responsibility (COR), proxy pattern and template patternĭesign patterns are documented, tried and tested solutions for recurring problems in a given context.Part 3 Design Pattern FAQs - State pattern, strategy pattern, visitor pattern, adapter pattern and fly weight pattern.Part 2 Design Pattern FAQs - Interpreter pattern, iterator pattern, mediator pattern, memento pattern and observer pattern.You can read my other design pattern FAQ sections of the same in the below links: In this section, we will cover factory, abstract factory, builder, prototype, shallow and deep prototype, singleton and command patterns. Here's a small quick FAQ on design patterns in Q and A format.

broken image

Can you explain shallow copy and deep copy in prototype patterns?.Can you explain abstract factory pattern?.

broken image

Updated with the explanation of Singleton pattern.

broken image