Where to Use Interface in asp.net

Posted by Sahoomanoj27 under ASP.NET on 3/19/2012 | Points: 10 | Views : 2134 | Status : [Member] | Replies : 3
Hi all

In our real live projects ,Do we need to use Abstract and interface class ?
Exactly where we will be using.Does it gives us any big advantage.?
Not only those concepts ,most of us are not worried about ,where and why
we use OOPS concepts,does it adds any advantage to our application.

So any1 can help me on this issues with examples ,what advantage it gives ?




Responses

Posted by: Brhrmaster on: 3/19/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Sahoomanoj27 How you doing!

Look, in real projects we use abstract classes and interfaces a LOT!
Remember one thing: INTERFACE is not a CLASS!
This features is within any OOP language since SmallTalk from the 70's. You can learn them deeply and its easy practical terms reading some book about Design Patterns. I personally recommend you the Kathy Sierra's book Head First - Design Patterns.
The context used in this book is in Java language although it won't be a problem.

Enjoy in this fully adventure Jorney!

Sahoomanoj27, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ogipansrk on: 3/19/2012 [Member] Starter | Points: 25

Up
0
Down
Sahoomanjoj,

You asked about "Interfaces N Abstract".

You will get a crystal clear picture these topics when you learn the below topics:

1. Factory Pattern
2. Abstract Factory Pattern

Hope this helps !!



Sahoomanoj27, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajni.Shekhar on: 3/22/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi Sahoomanjoj,
whenever we use any design-pattern, in most of the design pattern we use interface or abstract. not because we have to use it it could be as per your application requiremt or your project standards. So, OOPs cconcept always used in real scenerio, it depends project to project where and how you are using.

Thanks,
Rajni Shekhar

Sahoomanoj27, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response