Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I am confused on the use of interfaces. I know what they are and how they works. I am curious to know how I can make my program codes better managed using my own interfaces. I am designing a big hospital form where you can open multiple forms. those forms have some common functionalities over the controls.
Sorry If my question is silly.. I am novice programmer
Thank you so much for your time.
Regards
Posted

You could start by reading this[^].
 
Share this answer
 
Comments
Nish Nishant 4-Feb-11 12:49pm    
Holy cow, I posted that very same link!. Take a 5 :-)
Sergey Alexandrovich Kryukov 4-Feb-11 15:11pm    
Sure, a 5.
--SA
Abhinav S 28-Mar-11 0:32am    
Thanks for the 5.
Here's a pretty good free chapter from a C# book:

http://msdn.microsoft.com/en-us/library/orm-9780596521066-01-13.aspx[^]

In your case it seems like you may be better served with some common base classes rather than interfaces.

Here's another link (older article though) that talks about when you choose an interface over an abstract class:

http://msdn.microsoft.com/en-us/library/scsyfw1d(v=vs.71).aspx[^]
 
Share this answer
 
v5
Comments
Abhinav S 4-Feb-11 12:53pm    
I gave you a 5 too. ;)
Sergey Alexandrovich Kryukov 4-Feb-11 15:11pm    
Not bad. My 5.
--SA

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