批踢踢實業坊
›
看板
java
關於我們
聯絡資訊
返回看板
作者
NPcomplete (Non-deterministic)
看板
java
標題
[問題] constructor invoke another constructor
時間
Fri Sep 21 23:44:49 2012
Hello everyone, "The benefit of having one constructor invoke another overloaded constructor is to avoid code duplication." 讀書時看到這句並不了解為什麼 想請問有沒有人可以解釋 或是直接給我一個例子 感謝~~ --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 36.227.195.22