Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dense Newbie
Message
From
02/12/2003 19:09:39
Del Despain
Colorado Plateau Associates
Hurricane, Utah, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
00854881
Message ID:
00855254
Views:
21
Good tip! I think I was shown this once, but it fell off the stack.

This leads to a question: Although the jump-start samples don't do this, would it be a good idea when overriding essentially empty methods, such as MM hook methods, to always call the base method anyway just in case the method is overridden later in a parent or in case the parent is replaced with a different class or another level is slipped into the inheritance chain?

>One suggestion, when you want to override a method of the parent class, type "override" and press space then select the method you want to override. This way, the corrent method will be copied down along with the call to the base method.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform