+ 1
Can we make a constructor final?
I know constructors cannot be inherited but still is there any possibilities so that a constructor can be made final?
1 Resposta
+ 1
In Java a class constructor is already implicitly final so you cannot make it final. The constructor is not inherited when a class is extended therefore it cannot be overridden. Likewise, you can't make a constructor static or abstract.
What are you trying to accomplish by making a constructor final?