A visibility modifier is applied to a class or interface that cannot take that modifier or to a member of a class or interface defined with an incompatible overall modifier.
To correct this error
-
Remove the visibility modifier or use an alternative modifier.
-
Make sure that visibility modifiers applied to class members match the visibility of the class.
See Also
Concepts
JScript Modifiers
Other Resources
JScript ReferenceClass-based Objects