作者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