Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I overload override methods/properties?
Message
De
12/01/2005 11:36:06
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00976420
Message ID:
00976435
Vues:
7
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform