Match modifiers on override methods.

Compiler errors were being caused because an override method modifiers must match the base method's modifiers.