PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
OOAD
[概念] 请问关于Java的constructor
楼主:
valda
(valda)
2011-07-20 00:51:01
大家好~之前在公司主要维护VB6.0开发的AP,最近转换跑道,新公司是用JAVA当作
开发工具,所以最近都在念JAVA,在看Thinking in JAVA时,看到关于constructor
的章节,里面有提到将constructor变成private,我实在不太懂为何要将constructor
变成private,然后用static method回传此class的instance,实在不懂为何要这样
做?请各位前辈指点,感谢
继续阅读
[请教] Design patterns要买英文或中文版
retinitis
Re: [请教] 请教strategy、state pattern in C++
chchwy
Re: [请教] 请教strategy、state pattern in C++
iamstudent
Re: [请教] 请教strategy、state pattern in C++
chchwy
Re: [请教] 请教strategy、state pattern in C++
iamstudent
Re: [请教] 请教strategy、state pattern in C++
chchwy
Re: [请教] 入门书籍推荐
magicfx
Re: [请教] 请教strategy、state pattern in C++
leondemon
[请教] 请教strategy、state pattern in C++
iamstudent
Re: [请教] bridge versus strategy pattern
aecho
Links
booklink
Contact Us: admin [ a t ] ucptt.com