Adds the `override` keyword to the `core` sources to ensure compatibility with `noImplicitOverride`. PR Close #42512