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