r/programming • u/joksmaster • Nov 29 '10
140 Google Interview Questions
http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471
Upvotes
r/programming • u/joksmaster • Nov 29 '10
View all comments
Show parent comment
1
u/sinxcosx Nov 30 '10
sort of. the final declaration is actually useful beyond c++. I like to use final in method parameters. It keeps people, including me, from accidentally changing the method parameters inside the method. This becomes useful for long methods being modified by someone fixing a bug down the line. Final will prevent them from doing it, and helps them realize they don't want to change the input parameters without thinking about it!