@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.

Leave a Reply

Your email address will not be published. Required fields are marked *