Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating base class with Sub New(with parameters)
Message
From
02/10/2004 08:18:28
 
 
To
01/10/2004 06:28:59
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00947856
Message ID:
00948187
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform