Skip to content

Commit ffa0297

Browse files
committed
Add note about 'override' and 'final' keywords
1 parent ccd079d commit ffa0297

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

05-Considering_Maintainability.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ See http://mortoray.com/2015/06/15/get-rid-of-those-boolean-function-parameters/
3030
## Avoid Raw Loops
3131
3232
Know and understand the existing C++ standard algorithms and put them to use. See [C++ Seasoning](https://www.youtube.com/watch?v=qH6sSOr-yk8) for more details.
33+
34+
## Properly Utilize 'override' and 'final'
35+
36+
These keywords make it clear to other developers how virtual functions are being utilized, can catch potential errors if the signature of a virtual function changes, and can possibly [hint to the compiler](http://stackoverflow.com/questions/7538820/how-does-the-compiler-benefit-from-cs-new-final-keyword) of optimizations that can be performed.

0 commit comments

Comments
 (0)