Thursday, 17 March 2016
How to make sure that child class method actually overrides the method of the superclass ?
The
@Override
annotation can be added to the javadoc for the new method.
If you accidently miss an argument or capitalize the method name wrong, the compiler will generate a compile-time error.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.