Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bertha Ferguson   on Jun 20 In Java Category.

  
Question Answered By: Dinh Tran   on Jun 20

i think if the final  keyword is used to prevent  method overriding.... not method
overloading..when a method  Adds in class Calc is declared final and class
Calculate extends Calc then it cannot define Adds method in the Calculate class
ie it cannot be overridden.... when a method is declared final then it cannot be
inherited....

Share: