Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design issues
Message
From
06/08/2010 14:04:49
 
 
To
06/08/2010 13:34:22
General information
Forum:
ASP.NET
Category:
Class design
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01475236
Message ID:
01475561
Views:
26
>My reasoning for using an interface is that he has two classes that don't share a common ancestor, but on which he wants to implement a common method. By implementing an interface he can treat both classes as the same type.

Actually, one client class, which is inheriting from a base class, has a need to benefit of an overridable similar type method from an object which is created in that class. So, basically, when I create an object, I have a need for the base class to call a method in the client class. This is usually accomplished by defining an Overloadable method in the base class. But, here, as you know, the client class is not inheriting from that class.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform