Vb Object Oriented Inheritance
Table of Contents

Introduction

Inheritance is the process you use to derive one class from another.

Example
[[code]]
Public Class Form1
Inherits System.Windows.Forms.Form
[[//code]]

The Inherits statement is used to declare a new class, called the derived class, based on an existing class, known as the base class.

Derived classes inherit, and can extend, the properties, methods, events, fields, and constants defined in the base class (the exception here are constructors, which are not inherited).
By default, any class can serve as a base class unless you explicitly mark it with the NotInheritable keyword.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
{"cc_re__cc_re__cc_by_sa_2_5": ["ick=\"WIKIDOT.page.listeners.pageBugReport(event)\">Report a bug</a>\n    &nbsp;|\n    <a href=\"javascript:;\" id=\"abuse-report-button\" onclick=\"WIKIDOT.page.listeners.flagPageObjectionable(event)\">Flag as objectionable</a>\n</div>\nPowered by <a href=\"http://www.wikidot.com\">Wikidot.com</a> \n            </div>\n            \n                <div id=\"license-area\" class=\"license-area\">\n                    Unless otherwise stated, the content of this page is licensed under <!--Creative Commons License--> <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/2.5/\">Creative Commons Attribution-Share Alike 2.5  License</a>.<!--/Creative Commons License--><!-- <rdf:RDF xmlns=\"http://web.resource.org/cc/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n\t<Work rdf:about=\"\">\n\t\t<license rdf:resource=\"http://creativecommons.org/licenses/by-sa/2.5/\" />\n\t</Work>\n\t<License rdf:about=\"http://creativecommons.org/licenses/by-sa/2.5/\"><permits rdf:resource=\"http://web.resource.org/cc/Reproduction\"/><permits rdf:resour"]}