How can I prohibit methods from being overloaded?

John Mitchell

The only relatively surefire way that I know of is to make the entire class final. I.e., since there's no way to subclass that class then nobody can overload that method.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.