DOT NET Interview Questions - DotNetSpider
DOT NET Interview Questions - DotNetSpider
DOT NET Interview Questions - DotNetSpider
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
(A)What is aspect oriented programming?<br />
Note :- This is something which is catching up the market so interviewer can ask you to see<br />
how you are in touch with the market.So probably this explanation can be quiet long but<br />
bear with me it is worth of it<br />
I will try to be as short as possible as this book is not a reference book. Just to save you<br />
from interviewer I will give a short description of aspect oriented programming in .<strong>NET</strong>.<br />
First let's try to define it which can probably save you during interview<br />
Aspect-oriented software development is a new technology for separation of concerns (SOC)<br />
in software development. The techniques of AOSD make it possible to modularize<br />
crosscutting aspects of a system.<br />
Ok that statement’s can save you for the first stage let’s get down actually what is it. Let’s<br />
revisit back how software development cycle evolved.<br />
When we look back at times of Cobol where we used to break the modules in small<br />
functionalities and use reusability to its maximum.<br />
Then came the time when we talked in terms of Objects where things where clearer as<br />
software was modeled in terms of real life examples. It worked fine and till today is the<br />
most accepted way of implementing and organizing project. So why AOP ?<br />
Aspect oriented programming does not oppose OOP’s but rather supports it and make’s<br />
it more maintainable. So remove the logic from head the AOP is replacement of OOP.<br />
No its brother of OOP helping him to be better.<br />
When we talk in terms of object’s it’s an entity which maps to real world domain. Object<br />
has attributes which represent the state of object and also define its behavior. By rule of<br />
object oriented programming object should be stand alone and communicate with other<br />
object’s using messages or defined interface.<br />
One object should not communicate with other object directly rather communicate through<br />
defined interfaces. Every object satisfies some “Concern” in relation to the system.<br />
Twist: - What is Concern in AOP?<br />
“A concern is a particular goal, concept, or area of interest”<br />
There are mainly two types of concern from an object perspective:-<br />
√<br />
Core / Main concerns which it should satisfy and is his work.<br />
I hope in my second edition i will come out with a seperate chapter on AOP<br />
163