final Keyword
final keyword is a non-access modifier used for classes, attributes, and methods, which makes them non-changeable (also impossible to inherit or override).
The final keyword is useful when you want a variable to always store the same value, like PI (3.14159...).
|
“The easiest time to add insult to injury is when you’re signing somebody’s cast.” – Demetri Martin |