Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to extend a vb6 class by using interface?
Posted

1 solution

It's rather difficult, as the inheritance available in vb6 is very limited. The closest I've seen [and I would not recomend] is like this: Parent.cls Option Explicit Public Sub CallMe() 'do something End Sub Child.cls Option Explicit Implements Parent Private m_parent As Parent Private Sub Class_Initialize() Set m_parent = New Parent End Sub Private Sub Parent_CallMe() ' do extra stuff m_parent.CallMe End Sub Public Sub CallMe() Parent_CallMe End Sub It is so ugly, but that is about it...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900