Member declared in a parent class

You tried to declare a member variable in a derived class using the same name as a member variable, sub, function, or property of the base class. This is not allowed.

The name space for variables also includes functions, subs, and properties. This means that if a name is used as a method name in a base class, it may not be used as a variable name in a derived class. For example:

Class BaseClass
   X As Integer
   Sub Y
   ' ...
   End Sub
End Class
Class DerivedClass As BaseClass
   X As Integer                     ' Illegal
   Y As Integer                     ' Illegal 
   ' ...
End Class

Declare the variable using a different name.