Click here to Skip to main content
13,195,379 members (62,114 online)
Rate this:
Please Sign up or sign in to vote.
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.
Posted 7-Oct-12 9:43am
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.
Milind Thakkar 8-Oct-12 1:33am
What do you mean by some example ? Is this kind of interview question !

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


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,

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171019.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100