65 767
Assignments Done
99,4%
Successfully Done
In October 2018

Answer to Question #63981 in Java | JSP | JSF for hamod

Question #63981
how would you prevent a class from being used as a base class?
Expert's answer
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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions