Class Inheritence in VB 
Author Message
 Class Inheritence in VB

Hi!
Does anybody know how to inherit a class(derive from a base class) in Visual
Basic? I tried using the Implements statement but this is only good for
polymorphism. It does not allow me to declare aditional private attributesor
functions in the derived class. Basically, my attributes in the base class
(interface as it is called in VB) must match the attributes in the derived
class which is not what I want. Can anybody help??


Mon, 26 Jul 2004 06:38:31 GMT  
 Class Inheritence in VB
Simulate it using inplementation and delegation, that's the closest that
you'll get to it.  It works well.


Quote:
> Hi!
> Does anybody know how to inherit a class(derive from a base class) in
Visual
> Basic? I tried using the Implements statement but this is only good for
> polymorphism. It does not allow me to declare aditional private
attributesor
> functions in the derived class. Basically, my attributes in the base class
> (interface as it is called in VB) must match the attributes in the derived
> class which is not what I want. Can anybody help??



Mon, 26 Jul 2004 15:14:30 GMT  
 Class Inheritence in VB
Wait for VB.NET. Inheritance is fully suported there.
Peter

Quote:
> Hi!
> Does anybody know how to inherit a class(derive from a base class) in
Visual
> Basic? I tried using the Implements statement but this is only good for
> polymorphism. It does not allow me to declare aditional private
attributesor
> functions in the derived class. Basically, my attributes in the base class
> (interface as it is called in VB) must match the attributes in the derived
> class which is not what I want. Can anybody help??



Mon, 26 Jul 2004 18:54:10 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Inheritence in VB

2. Inheritence in VB

3. Inheritence in VB

4. ActiveX inheritence problem

5. Problem with inheritence and localizability

6. Inheritence

7. IDE interferes with Inheritence

8. tool tips and inheritence

9. Multiple inheritence?

10. ADsSecurity and turning inheritence off

11. Folders and Permission Inheritence

12. disable inheritence from security tab

 

 
Powered by phpBB® Forum Software