Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need a real time example of interface and abstract class. I don't need the code but a scenario where we use the interface, abstract class. Like somebody is working on an application which calculates the auto insurance premium and using interface and abstract class at some point.
Thanks
Posted
Comments
BillWoodruff 7-Oct-12 23:37pm    
What exactly does "real time" mean here ?

Have you read the MSDN documentation on interfaces and abstract classes: those resources, in my opinion, should tell you everything you need to answer this question for yourself.

If you have a concrete example of a problem where you don't know which is "best practice:" to use an Interface; or use an Abstract Class, then tell us what that concrete example is.

In general, this forum is for helping people with code they have written, and problems they have with it, or with the specifics of the "how" to achieve something using code they have, not with theory.
MT_ 8-Oct-12 1:33am    
What do you mean by some example ? Is this kind of interview question !

1 solution

Hi,

There are so many examples available on internet, All you need to relate with the real life scenario. But here are some of the example you can refer.

Interface example[^]

All about abstract classes.[^]

Hope it works for you,
Thanks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900