Overriding

Overriding refers to the re-definition of a method in a subclass which would otherwise have been inherited from its superclass. There are two varieties of overriding possible in Java: There is sample code in the lecture code repository.