What is the `extends` keyword used for in Java?
The `extends` keyword is used to indicate that a class is inheriting from another class, allowing the subclass to inherit the fields and methods of the superclass.
Great! Youâ€™ve correctly explained the purpose of the `extends` keyword.
Can you describe what happens when a subclass overrides a method from the superclass?