JS1218: Static methods cannot override base class methods

A method has both static and override modifiers. This is not allowed since the static method is associated with the current class, and overriding only works with class instances.

To correct this error

  • Remove either the static or override modifier from the method declaration.

See Also

Concepts

Troubleshooting Your Scripts

JScript Modifiers

Other Resources

JScript Reference