Can abstract be declared as Final

Showing Answers 1 - 1 of 1 Answers

Radhakrishna Billa

  • May 7th, 2007
 

Hi,


  No,we can't  declare both final and abstract for the same method,B'coz if you declare method as abstract means we are declaring a method not actual a concrete method  so we need to override in the subclass. If you  declare the same method as final means you should not override this method.
So there will be an ambiguity for the compiler,it will give an error.

  thats y we shouldn't declare both abstract and final to the same method. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions