Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I overload override methods/properties?
Message
From
12/01/2005 11:36:06
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00976420
Message ID:
00976435
Views:
8
First, I don't see how you could overload a property. You can overload anything by specifying different parameters, but you cannot overload by specifying a different return data type. Since there are no parameters with a property, you can't overload it.

Secondly, you wouldn't actually be overloading an overridden method ... if that method does not already have that particular signature, you couldn't override it. You'd just be creating a new method with a different signature without the override part.

IOW, you can't say:
public override MyMethod(DifferentParms)
you'd just have
public MyMethod(DifferentParms)
Does this make sense?

~~Bonnie


>I have attempted to overload an override property and apparently that is not possible (compiler error). Is this correct?
>I have not tried it yet but I assume it is possible to overload an overridden method. Please confirm.
>
>Einar
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