Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Use Interfaces
Message
From
12/01/2008 01:13:08
 
 
To
11/01/2008 10:26:00
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01278205
Message ID:
01281305
Views:
13
>Having an interface inheriting from another is your choice. You might have a IFileSend interface. And when you designed it Email was the only requirement. Now certain classes will need to be FTP'ed.
>
>I've seen it both ways, where the author created another interface IFileSendFTP and either inherited the IFileSend interface, so your classes only needed to implement the IFileSendFTP. Or the interfaces were kept separate and the classes implemented both.


Perry, anything that implemented the IFileSendFTP would still need to implement the interface of the IFileSend as well. Otherwise, what's the point of inheriting IFileSend?

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform