Skip to content

Method Override

  • Polymorphism: Overrides the dummyMethod of the super class
  • @Override annotation assures that you are overriding the method (and not creating a new one)
@Override
public void dummyMethod() {
  System.out.println(super.getFirstName() + "(Child Class): Dummy Method");
}