Home arrow VB.Net arrow Page 2 - Everything You Wanted to Know About Forms Inheritance in VB.Net
VB.NET

Everything You Wanted to Know About Forms Inheritance in VB.Net


Learn how to take advantage of Forms Inheritance, while being introduced to certain Object Oriented approaches, in Saurabh's latest article.

Author Info:
By: Saurabh Verma
Rating: 4 stars4 stars4 stars4 stars4 stars / 215
October 29, 2003
TABLE OF CONTENTS:
  1. · Everything You Wanted to Know About Forms Inheritance in VB.Net
  2. · Concept of Inheritance
  3. · Visual Inheritance
  4. · What’s New in This Article
  5. · What's New in This Article, Cont'd
  6. · Conclusion

print this article
SEARCH DEVARTICLES

Everything You Wanted to Know About Forms Inheritance in VB.Net - Concept of Inheritance
(Page 2 of 6 )

OO Programmers should full understand the concept of inheritance. This section is especially for the non-OO-based programmers, so the experienced OO programmers can skip this section.

Definition (Inheritance) Inheritance is the mechanism which allows class A to inherit properties of class B. We say “A inherits from B”. Thus, objects of class A have access to attributes and methods of class B without the need to redefine them. The following definition defines two terms with which we are able to refer to participating classes when they use inheritance.

Definition (Superclass/Subclass) If class A inherits from class B, then B is called a superclass of A. A is called a subclass of B. Objects of a subclass can be used where objects of the corresponding superclass are expected. This is due to the fact that objects of the subclass share the same behavior as objects of the superclass.

In the literature you may also find other terms for “superclass” and “subclass”. Superclasses are also called parent classes. Subclasses may also be called child classes or just derived classes.
Of course, you can again inherit from a subclass, making this class the superclass of the new subclass. This leads to a hierarchy of superclass/subclass relationships. If you draw this hierarchy you get an inheritance graph.

A common drawing scheme is to use arrowed lines to indicate the inheritance relationship between two classes or objects. In our examples we have used “inherits-from”. Consequently, the arrowed line starts from the subclass towards the superclass.

In the literature you also find illustrations where the arrowed lines are used just the other way around. The direction, in which the arrowed line is used, depends on how the corresponding author has decided to understand it.


blog comments powered by Disqus
VB.NET ARTICLES

- MyClass - Implementing Polymorphism in VB.Net
- Building a News Ticker Using VB.Net
- Everything You Wanted to Know About Forms In...
- Building Assemblies with VB.Net
- Simple VB.NET Notify Icon with Panel Applica...
- Regular Expressions in .NET
- String Encryption With Visual Basic .NET
- Deploying Applications in VB.NET: Part 1/2
- Watching Folder Activity in VB.NET
- Creating A Windows Service in VB.NET
- Implementing The Google Web Service In VB.NET
- Migrating to Visual Basic.NET from Visual Ba...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials