What's the first step you take for implementing any of Design Pattern?( .NET Design pattern interview questions with answers)
- By Shiv Prasad Koirala in Design Pattern
- Nov 1st, 2013
- 19302
- 0
This .Net design pattern interview question is provided by www.questpond.com
Note :- In this question the interviewer expects you to give a logical and practical answer. He is trying to understand have you really got the concept of design pattern.
Every design pattern solves certain problems. At the end of the day they are tried and test solution for a certain architecture problem. So you first need to understand what the problem is and then choose design pattern accordingly. For instance below are some scenarios where the thought will flow as follows.
Problem: - You want to create a single instance of an object.Solution: - Singleton design pattern.
Problem: - Want to change the behavior of the class without altering the class.
Solution: - Decorator pattern.
Problem: - Want to loop through a collection without giving him modify access to collection.
Solution: - Iterator pattern.
Do not miss to watch below wonderful video explaining Interview Questions on Design and Software Architecture Patterns :-
Shiv Prasad Koirala
Visit us @ www.questpond.com or call us at 022-66752917... read more