Which method scope prevents a method from being overridden by a subclass?

Daniel William

New member
Which method scope prevents a method from being overridden by a subclass?
A. Abstract
B. Protected
C. Final
D. Static
 
Answer: c
Explanation: When we declare a method is as final then it is not possible to override that method. Methods should not be overridden due to some security or any other reasons.
 

Tìm kiếm

Back
Top