-3

Possible Duplicate:
When do you use Java’s @Override annotation and why?

I see a lot of @override element in many codes and I don't exactly know what it means. for example:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}

I don't know what it means and I don't understand what am I overriding. Can someone please help me?

Community
  • 1
  • 1
IdoShamriz
  • 63
  • 1
  • 3
  • 7

1 Answers1

5

It means you are overriding a method of your parent class (the one you extend from).

richardtz
  • 4,993
  • 2
  • 27
  • 38