VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Inheritance Without Containment

by Kamilche (35 Submissions)
Category: Object Oriented Programming (OOP)
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

This example illustrates how to set up inheritance in VB, without using containment ('has-a') processing. The data structure is very flexible, as each class and object instance is basically a hash table (a dictionary in VB). It usess 'CallByName' to call the appropriate routine based on type, at runtime. Note that this could be made much more efficient and speedy by using a custom hash table class and enums instead of strings for properties, but I left that out to simplify this example.

Rate Inheritance Without Containment

Download Inheritance Without Containment

Download Inheritance Without Containment (5 KB)

Inheritance Without Containment Comments

No comments have been posted about Inheritance Without Containment. Why not be the first to post a comment about Inheritance Without Containment.

Post your comment

Subject:
Message:
0/1000 characters