Answer Posted / Anuj Srivastava
The `final` keyword in Scala is used to prevent a class or method from being overridden by subclasses. When a class is declared as final, it cannot be subclassed, and when a method is declared as final, it cannot be overridden.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers