class keywords

  • Thread starter Thread starter dennist
  • Start date Start date
D

dennist

I'm reading a book named Programming Microsoft Visual
Basic.NET for Microsoft Access Databases.

On page 49 there's a section on derived classes that
confuses me.

Quote:

"A derived class may refer to the overridden
version of a method or the base class implementation of a
method. You can use the MyBase and MyClass keywords to
clarify these references. To designate the base class
implementation of an overridden method in a derived
class, use MyBase.Method1 . To specify the overridden
derived class implementation of the same method in the
base class, use MyClass.Method1. If a method is not
overridden in a derived class, MyBase.Method1 .. Both
MyBase and MyClass are just keywords, not objects and are
used exclusively with methods."

Fine. But what do I do if I'm using more than one
derived class? How do I differentiate between the
different classes for the keywords.

dennist
 
This is not exactly winform related and you can get a better answer in the
microsoft.public.dotnet.languages.vb group.

Regards,
Xin

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. (c) 2003 Microsoft Corporation. All
rights reserved.
 
Back
Top