What is the function of @Override in Java? [duplicate]

1

Viewing some code or even creating an automatic method I noticed the presence of it @Override . What does it actually do in the code?

    
asked by anonymous 18.04.2016 / 19:37

1 answer

4

The @Override annotation explicitly states that the declared method is overwriting a method of the same signature declared in the superclass or interface being extended / implemented by its class.

    
18.04.2016 / 19:39