VB.NET 1.1 Tutorial - The Inherits Keyword


The Inherits keyword is applied to a Class in order to inherit the attributes, fields, properties, methods, and events from another class or interface.

Public Class myClass
  Inherits AnotherClass
  ' ...
End Class 

If used, the Inherits statement must be the first non-blank, non-comment line in a class definition. A Clss may only inherit for one class.


References

For more information on the Inherits Statement, visit MSDN at microsoft here.

What Next?

Take a look at Inheritance for more details on classes.

Return to the Tutorial Contents.