Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I was wondering if anyone knows of a C# program out there which demonstrates Inheritance and Polymorphism (and possibly Interfaces) in C#. I've looked at many books and while they give small coded examples, I can't seem to find a more 'real world' example. I get what these topics are about but am finding it tough to write code (for my own interest) without seeing something with a good amount of code.Thanks, Brian.
Posted
Updated 29-Sep-12 3:05am
v2
Comments
pasztorpisti 29-Sep-12 7:38am    
If you have no problems to solve then you don't need polymorphism and interfaces or programming in general. If you have some problems/goals but you don't know how to apply these concepts to solve your problem then we can help.

The problem is that anything which "properly" demonstrates those is either going to be small - as you have probably seen - in order to highlight those specific features, or large (because it is real world and thus not trying to show you anything).

You are probably best off looking a a book, or other tutorial - real world apps assume that you know this stuff, so won't try to show you the bits you want to see! It can then be even harder to see why things are done the way they are.
 
Share this answer
 
Take a look over here..
may be helpful for you
Introduction to inheritance, polymorphism in C#[^]
 
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