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
1.4m articles
1.4m replys
5 comments
57.0k users