Can you inherit a sub new (Constructor) with parameters in VB?
问题 In the code below I receive the compile error Error Too many arguments to 'Public Sub New()' on the Dim TestChild As ChildClass = New ChildClass("c") . I do not receive it on TestChild.Method1() even though they are both on the base class I am inheriting from. Public Class BaseClass Public ReadOnly Text As String Public Sub New(ByVal SetText As String) Text = SetText End Sub Public Sub New() Text = "" End Sub End Class Public Class ChildClass Inherits BaseClass End Class Public Class