@Override annotation

@Override annotation is placed above the method. This tells the compiler to use this methods instead the one in the super class. That means if you don’t have the method with same name in super class you don’t need to add @Override at all.

Beside that if you @override the method, compiler will warn you through the log, and this is useful to trace which method to use.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s