WHY "FINAL"???

by barkkathulla 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.
1118
like
0
dislike
0
mail
flag

You must LOGIN to add comments