.NET platform does not support multiple inheritance. Do not confuse multilevel inheritance with multiple inheritance. With multiple inheritance we can have a subclass that inherits from two classes at the same time.
Let's suppose we have an application that has a class Customers and another class Vendors. If you wanted to combine these two classes into one CustomerVendor class it would be a combination of Customers and Vendors just like the diagram below.
Please copy the following URL into your browser to view the diagram: http://www.vbprofs.com/images/Article Images/ThomasArt1.gif
In the above diagram we see how the CustomerVendor class inherits from both of those classes.
Multiple inheritance is complex and can be dangerous. The advantages of code re-usage prevail over complexity is up to your choice.
Multiple inheritance is not supported by VB.NET or .Net platform. Instead of multiple inheritance we can use multiple interfaces to achieve similar effect to multiple inheritance.
In VB.NET all objects have a primary or native interface, which is composed of properties, events, methods or member variables declared using Public keyword. Objects can implement also secondary interfaces by using Implement keyword.
Sometimes it is helpful for an object to have more than one interface, allowing us to interact with the object in different ways. Inheritance allow us to create subclasses that are a specialized case of the base class.
Example
Sometimes we have a group of objects that are not the similar, but we want to handle them the same manner. We want all the objects to act as if they are the same, even though they are different.
We can have some different objects in an application, such as customer, product, invoice etc. Each object would have a default interface appropriate to each individual object, and each of them is a different class. No natural inheritance is implied between these classes. Let's suppose we want to print a document for each type of object. In this case we'd like to make them all act as printable object. To accomplish this we can define a generic interface that would enable generating a printed document. By implementing a common interface we are able to write a routine that accepts any object that implements a printed document.
To conclude, by implementing multiple interfaces in VB.NET , we can achieve a similar effect to that of multiple inheritance.
Thomas is an experienced Visual Basic developer, with expertise of 7+ years developing especially financial applications. His main IT skills are VB, SQL, Crystal Reports - should you need a Visual Basic developer for your projects feel free to contact Thomas through his personal website kaloyani.com or through kaloyani.com - the newest kaloyani.com portal.
one time home cleaning Highland Park ..Microsoft Great Plains is main Microsoft Business Solutions accounting package... Read More
Microsoft Business Solutions Great Plains is very generic accounting application... Read More
When Great Plains Software was designing and developing Great Plains... Read More
This article will not attempt to advocate the use of... Read More
Microsoft Business Solutions Small Business Manager is Great Plains Dexterity... Read More
C/SIDE (Client/Server Integrated Development Environment) - The core of... Read More
While several preventive maintenance software manufacturers offer free trials for... Read More
Microsoft Business Solutions Great Plains is Dexterity-written application and currently... Read More
Fundraising software lets you connect with donors in a way... Read More
You might think you don't need a firewall... Read More
.Net Framework is a platform or development environment to seamlessly... Read More
Microsoft Business Solutions Great Plains has Project Accounting module where... Read More
How many steps does it take you to locate and... Read More
Once a business idea is selected, it is highly recommended... Read More
Adware is a type of Spyware program that displays some... Read More
There are so many different programs that clutter up your... Read More
Logistics automation is often considered as barcoding extension to Sales... Read More
This is the tutorial where we really get into programming.... Read More
Microsoft-Outlook is a pretty amazing program. So much more than... Read More
Microsoft Client Relation Management system (Microsoft CRM) and Microsoft RMS... Read More
This tutorial covers OLAP solutions used by Data warehouses and... Read More
Microsoft CRM was designed to be easily customizable. Microsoft CRM... Read More
Upgrading. Downtime. Maintenance. Hardware obsolescence. Implementation issues. The litany of... Read More
Blue Cross and Blue Shield of Hawaii (HMSA) found itself... Read More
In this short FAQ style article we would like to... Read More
licensed cleaning services Park Ridge ..Many Webmasters have never bothered to view their website's server... Read More
There are many commands that are used in linux on... Read More
Domino server is a buffer between the operation system and... Read More
.NET platform does not support multiple inheritance. Do not confuse... Read More
For those who are unclear on the differences between the... Read More
I have always had a tendency to focus on the... Read More
There are certain pluses and minuses in both cases and... Read More
Before September 1995, Microsoft Windows was an MS-DOS program. DOS... Read More
Music downloads are off the charts! We're listening to digital... Read More
Microsoft Business Solutions Great Plains was historically designed to serve... Read More
IntroductionSurprised, by the title? well, this is a tour of... Read More
Microsoft Great Plains and Microsoft CRM become more and more... Read More
Now that spyware is the single most dangerous threat to... Read More
Microsoft PowerPoint has dramatically changed the way in which academic... Read More
Great Plains Purchase Order Processing (POP) module makes up one-third... Read More
If you have Microsoft Great Plains as main accounting and... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
Introduction to C++Why Learn C++?C++ may at first seem like... Read More
The first thing that you will notice about Linux Red... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions. If... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
C++ Function templates are those functions which can handle different... Read More
ERP Consulting industry is on the way to serve clients... Read More
While Ukraine is becoming a new popular IT outsourcing destination,... Read More
While Adobe is the most known maker of PDF tools,... Read More
Software |