Request a Free Evaluation: Click Here

MKS Toolkit v9.0 provides tools for instant productivity in both 32 and 64-bit Windows environments with development, testing, or system administration tasks.

With full support for multibyte/Unicode character sets and 64-bit Windows systems, MKS provides support for the newest, most powerful systems all over the world.

9.0 also includes Viw integrated with VisualStudio.NET, Secure Visual File Manipulation and more!
Call 800-637-8034; +1 (703) 803-3343

eBusiness Help
Find 30 Outlook add-ins that can make a difference!
Save time and be more productive with our line of Microsoft Outlook add-ins.
Drive New Traffic to Your Website: 5-Day Free Trial
The Linksmaster system completely automates the process of exchanging links with other websites. 5-Day Free Trial!
Start delivering qualified traffic to your site today.
Sign up today with ePilot and experience quality traffic, affordable bid prices, and comprehensive advertiser support tools.

Free Software Archive:
Enterprise and Home Networking Downloads

WebProWorld Dev Forum

It WILL look different
In checking a lot of other sites, I found that almost none of them validate -- including the WPC3 site itself, which "conditionally validates" but has information missing.

Windows Media Player as an inline element
I've been used to creating links on Web pages that cause Windows Media Player to open outside of the browser window and start to load and play a video...



Recent Articles

Borland Improves Real Time Java Development
Borland Software announced the release of its JBuilder 2006, an upgrade of its Java integrated development environment (IDE) for enterprise Java applications.

IBM Extends Composite Applications
IBM has launched its IBM Workplace Designer 2.5, aimed at letting customers extend roles-based document-oriented composite applications.

09.07.05


Solving The Multiple Inheritance Issue Under .NET Platform

By Thomas Kaloyani

.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 link into a new browser windor to view the diagram: http://www.vbprofs.com/images/Article Images/VBNETinheritance.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.

MKS Toolkit goes Global with Unicode Request a Free Evaluation

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.


About the Author:
Thomas is an experienced Visual Basic developer, with expertise of 7+ years developing financial applications. His main IT skills are VB, SQL, Crystal Reports - should you need a VB developer for your projects feel free to contact Thomas through his personal website at http://www.Kaloyani.com or through http://www.VBprofs.com

About DevNewz
DevNewz has assembled experts around the world to deliver helpful advice to application developers. Our in-house news staff focuses on keeping you updated with the latest new software and trends in application development. DevNewz provides Knowlege For Application Developers.

DevNewz is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITmanagementNews.com


-- DevNewzis an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2005 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article

Knowlege For Application Developers DevNewz News Archives About Us Feedback DevNewz Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact