define method overriding
Method overriding is when a child class redefines the same method as a parent class, with the same parameters. For example, the standard Java class java.util.LinkedHashSet eâ¦xtends java.util.HashSet. The method add() is overridden in LinkedHashSet.