title: Can you inherit a sub new (Constructor) with parameters in VB?
body: <p>In the code below I receive the compile error</p>
  
  <pre><code>Error Too many arguments to 'Public Sub New()'
  </code></pre>
  
  <p>on the <code>Dim TestChild As ChildClass = New ChildClass("c")</code>. I do not receive it on <code>TestChild.Method1()</code> even though they are both on the base class I am inheriting from.</p>
  
  <pre><code>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 TestClass
      Sub Test()
          Dim TestChild As ChildClass = New ChildClass("c")
          TestChild.Method1()
      End Sub
  End Class
  </code></pre>
  
  <p>I could change the child class to:</p>
  
  <pre><code>Public Class ChildClass
      Inherits BaseClass
        Public Sub New (ByVal SetText As String)
        MyBase.New(SetText)
      End Class
  End Class
  </code></pre>
  
  <p>As suggested below but I do not have to do that for Method 1 or other inherited methods and I am looking for the cleanest code possible. This may be a limitation in the system with inheriting parameterized New statements but I can not find it documented anywhere. If it is required then I would like to see the documentation.</p>