Job Interview: .NET Design Patterns questions
Job Interview: .NET Design Patterns questions
Design pattern is a general reusable solution to a commonly occurring problem in software design.
Most popular design patterns:
- Singleton - is a design pattern that is used to restrict instantiation of a class to one object.
- Abstract Factory - Abstract Factory is commonly known as factory pattern. In this pattern all the classes involved implement/realize the same interface and the compiler only knows that the created object implements the specific interface but not the object's type. This is very flexible when you need to make a creation decision at runtime depending on some aspect of object's behavior rather than it's type.
- Adapter Pattern - By converting the interface of one class into another interface which is expected by the clients we can make incompatible classes work together and this is the adapter pattern.
www.dotnetheaven.com

0 comments:
Post a Comment