8) When a class is defined with "final" keyword, the effect will be?
Answers
Answered by
0
Answer:
When a class is declared with final keyword, it is called a final class. A final class cannot be extended(inherited). There are two uses of a final class : One is definitely to prevent inheritance, as final classes cannot be extended.
Similar questions