Originally posted by saikrishna cinux:
if some one is implementing an interface then it is a rule to implement all the methods which are declared in interface?
why it compiles here
You missed a little bit from the above rule,
if some one is implementing an interface then it is a rule to implement all the methods which are declared in interface unless it is declared as abstract Please refer Sun tutorial.