|
-
Dec 12th, 2000, 08:24 PM
#1
Thread Starter
New Member
hi Friends,
Pl. let me know any solution for implementing the Inheritance in Visual Basic.
if yes, how.
Thanks in Advance.
bye.
-
Dec 13th, 2000, 05:46 AM
#2
Well, in VB6 you can't do inheritance - its one of the biggest flaws (it will be rectified in VB7).
you can sort of cheat by implementing interfaces. Basically, this means that you create an inteface class, which is just a list of procedure and propert stubs, and implement that in a given control or class. This means that you can then talk to that class in a generic way. Look up the implements keyword (I could be here all night describing it properly).
It's not inheritance, but it does allow a form of pseudo-inheritance.
- gaffa
-
Dec 15th, 2000, 08:42 AM
#3
Lively Member
Gaffa, it is inheritance.
There is Interface and Implementation Inheritance.
VB6 only supports Interface Inheritance (like you explained) but it's still Inheritance and definitly no cheat !!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|