Actually Constructors are the only thing not passed to a derived class. So it would inherit the interface but not the constructors. You can call them as you show but you will need to write that code it is not implied via inheritance.
Nevermind I guess it does inherit and fire the parent classes default constructor but it doesn't inherit any of the non default constructors.
So calling New on your child class will use the New on the parent class the same as:
VB Code:
Public Sub New() Mybase.New() End Sub
But the child class will not have the other constructors through inheritance.
VB Code:
Public Class Parent Public Sub New() MsgBox("Showing") End Sub Public Sub New(ByVal msg As String) MsgBox(msg) End Sub End Class Public Class Child Inherits Parent End Class 'syntax of use Dim c As New Child 'only default constructor is available




Reply With Quote