WHY "FINAL"???
by barkkathulla[ Edit ] 2012-09-22 13:04:19
WHILE METHOD OVERRIDING IS ONE OF JAVA'S MOST POWERFUL FEATURES, THERE WILL BE TIMES WHEN YOU WILL PREVENT IT FROM OCCURING.TO DISALLOW A METHOD FROM BEING OVERRIDDEN,SPECIFY FINAL AS A MODIFIER AT THE START OF ITS DECLARATION.METHODS
DECLARED AS FINAL CANN'T BE OVERRIDEN. THE FOLLOWING PROGRAM ILLUSTRATES FINAL.