Overriding a method means defining a method in a subclass that has the same signature as the method of the same signature in the superclass.
class Car extends Vehicle { // override the move method defined in superclass void move() { // define move specific only to Car } }
Top |