Interview Question: Explain Open – closed Object Oriented Design Principle with program and example. What is benefit of using Open closed principle? NOTE: To answer this question, we should be explaining what the problem is without using Open Closed principle and what we get using Open- Closed principle with a program example. Answer: Open – […]
Tell me name of some OOPs Design patterns
Answer: Though, here is the list of some OOPs Design patterns – for this question interviewer expect that a candidate is at least familiar with some name of design patterns, he doesn’t expect details. However, as a next question they may pick one or may ask you to pick one and to explain. It is […]
What is difference between Factory Design Pattern and Builder Pattern?
Answer: Listing here the differences between factory design pattern and Builder design pattern with example and source code. A Factory Design Pattern is used when the entire object can be easily created and object is not very complex. Whereas Builder Pattern is used when the construction process of a complete object is very complex. Another […]