Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating base class with Sub New(with parameters)
Message
De
02/10/2004 08:18:28
 
 
À
01/10/2004 06:28:59
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00947856
Message ID:
00948187
Vues:
17
Hi,

>>
Is there a way to get this done without having to declare Sub New in each of the derived classes?
>>

No. The constructor method is an exception - it must be defined in subclasses. You'll need to do:
Public Sub New (obj as object)
  MyBase.New(obj)
End Sub
HTH,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform