[問題] constructor invoke another constructor
Hello everyone,
"The benefit of having one constructor invoke another overloaded constructor
is to avoid code duplication."
讀書時看到這句並不了解為什麼
想請問有沒有人可以解釋
或是直接給我一個例子
感謝~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 36.227.195.22
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):