Is it possible in Java to override 'toString' for an Objects array?

前端 未结 7 566
一整个雨季
一整个雨季 2020-11-28 12:00

Is it possible in Java to override a toString for an Objects array?

For example, let\'s say I created a simple class, User (it doesn\'t really matter wh

相关标签:
7条回答
  • 2020-11-28 12:56

    No. Of course you can create a static method User.toString( User[] ), but it won't be called implicitly.

    0 讨论(0)
提交回复
热议问题