Introduction
Overriding lets you change how a method or property works in a child class. It helps you customize behavior without changing the original code.
You want a child class to do something different when a method runs.
You want to change the value or behavior of a property in a subclass.
You need to add extra steps before or after the original method runs.
You want to fix or improve how a method or property works in a subclass.