What does the ‘override’ keyword enforce that was not enforced before TypeScript 4.3?

TypeScript Professional Medium

TypeScript Professional — Medium

What does the ‘override’ keyword enforce that was not enforced before TypeScript 4.3?

Key points

  • 'override' ensures the presence of the base method
  • Prevents accidental changes to base method name or deletion
  • Enhances code reliability by catching errors at compile time
  • Encourages adherence to inheritance rules

Ready to go further?

Related questions