Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# oops
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 7-Oct-12 10:43am
Comments
BillWoodruff at 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 at 8-Oct-12 1:33am
   
What do you mean by some example ? Is this kind of interview question !

1 solution

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

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 217
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,025


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2014
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