Results 1 to 3 of 3

Thread: How to Implement Inheritance in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    Singapore
    Posts
    3

    Post

    hi Friends,

    Pl. let me know any solution for implementing the Inheritance in Visual Basic.


    if yes, how.

    Thanks in Advance.


    bye.

  2. #2
    Guest
    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

  3. #3
    Lively Member
    Join Date
    Aug 1999
    Location
    Amsterdam
    Posts
    117
    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
  •  



Click Here to Expand Forum to Full Width