strategy pattern and state pattern are good way for replacing if-else or switch.strategy pattern is for choose appropriate arithmetic,state is for automatically changing state,single factory pattern for create appropriate instance and abstract factory choose appropriate instance by programmer.
posted on 2006-09-28 17:30
R.Zeus 阅读(295)
评论(0) 编辑 收藏 所属分类:
Hibernate 、
J2SE