@override annotation
Last updated
Last updated
@override annotation explicitly tells the compiler you are trying to override a parent class method . All kinds of IDE uses override annotation to help the developer in various way . Also it improves the readability of the code
Although it's not mandatory but it's good practice to use @override annotation . When you will be using an IDE , almost all the time @override annotation is automatically added ,so you don't need to worry about it