Override a method with the @Override annotation
Override a method with the @Override annotation
Answer
class Circle extends Shape { @Override void draw() { System.out.println("Circle"); } }
Same signature as `Shape.draw()`. `@Override` makes the compiler verify it truly overrides — catching typos that would otherwise create a silent new method.