Can someone please explain this MyBase statement?

  • Thread starter Thread starter sougata12
  • Start date Start date
S

sougata12

Guest
The method that MyBase qualifies does not have to be defined in the immediate base class; it may instead be defined in an indirectly inherited base class. In order for a reference qualified by MyBase to compile correctly, some base class must contain a method matching the name and types of parameters that appear in the call.

Can someone please explain the above statement with an example? Found this statement in the MSDN documentation of MyBASE.

Inheritance Basics (Visual Basic)



Sougata Ghosh

Continue reading...
 
Back
Top