What is the function of @Override in Java?

Asked

Viewed 1,077 times

1

Seeing some code or even creating an automatic method I noticed the presence of it @Override. What he really does in the code?

  • @Marconi I can barely see his movements!

  • 1

    @Diegof rs, Simple google search, already find her.

  • 3

    Also: http://answall.com/q/33014/10

1 answer

4


The @Override annotation makes it clear that the declared method is overwriting a signature method declared in the superclass or interface being extended/implemented by its class.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.