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