1) The signature including the number and type of arguments for the overriding method should be same.
2) The return type should be same.
3) The access modifier should not be more limiting than super class method.
4) The overriding method should not throw exceptions other than those thrown by the method in the superclass.
2) The return type should be same.
3) The access modifier should not be more limiting than super class method.
4) The overriding method should not throw exceptions other than those thrown by the method in the superclass.
Comments
Post a Comment