[問題] constructor invoke another constructor

看板java作者 (Non-deterministic)時間13年前 (2012/09/21 23:44), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
Hello everyone, "The benefit of having one constructor invoke another overloaded constructor is to avoid code duplication." 讀書時看到這句並不了解為什麼 想請問有沒有人可以解釋 或是直接給我一個例子 感謝~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 36.227.195.22
文章代碼(AID): #1GN8jpSw (java)
文章代碼(AID): #1GN8jpSw (java)