Click below for Step by Step and Interview Q & A (dotnetinter) wrote,
Click below for Step by Step and Interview Q & A
dotnetinter

.NET interview questions: - All about Design Patterns in .NET

Q. What are Design Patterns?

A. Design patterns are reusable and documented solutions for commonly occurring problem in software development.

Q. Which Design Pattern you have implemented in your project?

A. Singleton, Strategy pattern, Factory pattern, Facade

Q. What is Facade?

A. Facade is all about simplifying. Example in N-layer application Business Layer is example of Facade. Business layer creates object of data access layer, work with data, perform some logic, perform many functionality using different classes. From UI we will straight forward call single method of BAL and that’s it. BAL is a facade over complexities.

Q. How will you explain Strategy Pattern?

A. In strategy pattern we will create one class for one algorithm.
We make all algorithms (classes) belong the same family with the help of interfaces.

Q. In what scenario you implemented Strategy Pattern?

A. We had discount calculation which was different for different days of the week. Calculations were complex and modification chances more.

For technical trainings on various topics like WCF, MVC, Business Intelligence, Design Patterns, WPF, TFS and basic fundamentals feel free to contact SukeshMarla@Gmail.com or visit www.sukesh-marla.com

For more stuff like this, click here. Subscribe to article updates or follow at twitter @SukeshMarla

Also see our .NET interview questions video on Composite Design Pattern: -

Tags: .net, .net interview questions, Façade Pattern, composite pattern, csharp interview questions, design pattern, it interview questions with answers, programming interview questions, strategy pattern
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments