Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 927fa7e

Browse files
author
deeper
committed
add composite(组合模式)
1 parent 6f67f96 commit 927fa7e

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

‎src/com/ruoxu/pattern/composite/1.png

3.7 KB
Loading[フレーム]

‎src/com/ruoxu/pattern/composite/2.jpg

31.5 KB
Loading[フレーム]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.ruoxu.pattern.composite;
2+
/**
3+
* 组合模式(也称之为 整体-部分模式)
4+
* 总结:
5+
* 组合模式比较简单,用的也不多
6+
* 组合模式分为两种: 1.安全的组合模式 2.不安全的组合模式(透明的组合模式)
7+
*/
8+
public class Demo {
9+
public static void main(String[] args) {
10+
11+
}
12+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 组合模式图
2+
![](1.png)
3+
![](2.jpg)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /