Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Override custom method in subclass
Message
 
 
To
08/09/2009 12:44:10
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01423040
Message ID:
01423096
Views:
39
>>
>>Yes, my reply was about implementing the custom code in the instance of the class. This we do all the time in VFP and we can not do it in .NET.
>>
>>I agree with your comment regarding subclass and base class.
>
>Not really sure what you're talking about, but you can place code in the instance of the class through the use of protected virtual methods that are overridable and add the code you want in the instance.

VFP analogue.

Button's class with the

MyCustomMethod method.

In the form we put in the MyCustomMethod

dodefault()

do something else - relevant to this form only

-----------------------------------------------
What is .NET equivalent?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform