Is there any other method of stopping inheritance of a class apart from declaring it as final or by declaring its constructor as private?
A comment
//Do not inherit please
2.1m questions
2.1m answers
60 comments
57.0k users