This website works better with JavaScript.
Explore
Help
Register
Sign In
liangqi
/
pattern
Watch
1
Star
0
Fork
You've already forked pattern
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
设计模式(java源码实现)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14
Commits
1
Branch
0
Tags
208 KiB
Java
100%
Tag:
Branch:
Tree:
528dd86e84
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '528dd86e84'
${ noResults }
pattern
/
pattern-template
/
README.md
283 B
Raw
Blame
History
模版方法
模型:行为模型 思路: 1.将流程和具体实现分开 2.父类负责流程,子类负责具体实现 3.父类和子类协同一致实现程序
坏处: 1.在没有看到父类的源码情况下,子类无法实现
体现里氏替换原则