accesing property in anscestor

  • Thread starter Thread starter newbie
  • Start date Start date
N

newbie

Hello,

suppose I have:

Class A
with property which is overridable 'paramA'

Class B
inherits from class A
Overrides Property paramA() as Integer
Get
Return ???.paramA
End Get
End Property


I know that in C# you can write Return base.paramA
This returns the value of the ancestor.

How is this done in VB?

Thanks
 
Hi,

Not sure why you would override paramA if you are returning the
value from the base class. Use MyBase.paramA

Ken
 
Thanks for the answer.

I've created a control that inherits from the treeview.

In the 'Get' properties I want to return the properties of the base
treeview.
 
Back
Top