26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8..<strong>NET</strong> Architecture<br />

(B) What are design patterns ?<br />

Design patterns are recurring solution to recurring problems in software architecture.<br />

(A) Can you list down all patterns and there classification ?<br />

Note :- This is advanced question because any one who says to list down all patterns can<br />

only be crazy for what he is asking.But its always a win-a-win situation for the interviewer.<br />

There are three basic classification of patterns Creational , Structural and Behavioral<br />

patterns.<br />

Creational Patterns<br />

√ Abstract Factory:- Creates an instance of several families of classes<br />

√<br />

√<br />

√<br />

√<br />

Builder :- Separates object construction from its representation<br />

Factory Method:- Creates an instance of several derived classes<br />

Prototype:- A fully initialized instance to be copied or cloned<br />

Singleton:- A class of which only a single instance can exist<br />

Note :- The best way to remember Creational pattern is by ABFPS (Abraham Became<br />

First President of States).<br />

Structural Patterns<br />

√ Adapter:-Match interfaces of different classes.<br />

√<br />

√<br />

√<br />

√<br />

√<br />

√<br />

Bridge:-Separates an object’s interface from its implementation.<br />

Composite:-A tree structure of simple and composite objects.<br />

Decorator :-Add responsibilities to objects dynamically.<br />

Façade:-A single class that represents an entire subsystem.<br />

Flyweight:-A fine-grained instance used for efficient sharing.<br />

Proxy:-An object representing another object.<br />

149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!