Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of Final Keyword  RSS feed

 
Naty wills
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
It is always be suggested that "Avoid the use of Final Keyword" while designing a software.
Can somebody explains me why is it so??

Thanks
Naty
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who suggested this, then? Blanket statements like this one are usually bad advice; this one, especially so. In general, 'final' is a useful tool with few (if any) drawbacks.
 
Jean-Francois Briere
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The final keyword has many useful aspects.
You should read: Use final liberally.

Regards
 
Naty wills
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Thanks for replies..
I was just thinking that use of Final Keyword violates the OOPS concept specially Inheritance. So whether we should use this or not?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!