how would you prevent a class from being used as a base class?
1
Expert's answer
2016-12-10T02:54:10-0500
Solution
public final class someClass{
}
Answer
If you make any class as final, you cannot extend it. That’s why you should use Java keyword “final” if you want prevent a class from being used as a base class.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments