Specifies the base (or parent) class
Public Class Person
End Class
Public Class Customer
Inherits Person
End Class
'One line notation
Public Class Student : Inherits Person
End Class
Possible objects:
Dim p As New Person
Dim c As New Customer
Dim s As New Student
Prevents programmers from using the class as a base class.
Public NotInheritable Class Person
End Class
Possible objects:
Dim p As New Person
Specifies that the class is intended for use as a base class only. (Abstract class)
Public MustInherit Class Person
End Class
Public Class Customer
Inherits Person
End Class
Possible objects:
Dim c As New Customer