問題:
Is it possible to call a constructor from another (within the same class, not from a subclass)? 是否能夠從另外一個(在同一類中,而不是在子類中)調用構造函數? If yes how? 若是是,怎麼辦? And what could be the best way to call another constructor (if there are several ways to do it)? 調用另外一個構造函數的最佳方法是什麼(若是有幾種方法能夠作到)? 函數
解決方案:
參考一: https://stackoom.com/question/1CBd/如何在Java中從另外一個調用一個構造函數參考二: https://oldbug.net/q/1CBd/How-do-I-call-one-constructor-from-another-in-Java