Override Annotation:
The override annotation means that the following deceleration/methods is meant to override the deceleration/methods in the super class. Basically the super class is the class that has the main method which is called automatically upon initialization of the class file. From there, you can assign new objects and such. When you use the override annotation, it helps you program because it'll send a message about any spelling mistakes and secondly it makes your deceleration/methods more obvious of what it does since this annotation basically tells us that it over writes a deceleration/methods in the super class. In other, simpler words it's also referred to as a safe guard.
Usage:
Usually used in the child classes.
The override annotation means that the following deceleration/methods is meant to override the deceleration/methods in the super class. Basically the super class is the class that has the main method which is called automatically upon initialization of the class file. From there, you can assign new objects and such. When you use the override annotation, it helps you program because it'll send a message about any spelling mistakes and secondly it makes your deceleration/methods more obvious of what it does since this annotation basically tells us that it over writes a deceleration/methods in the super class. In other, simpler words it's also referred to as a safe guard.
Usage:
Code:
@Override public String hello() { return "Hello YOU!"; }