Merge pull request #516 from ZedYeung/patch-1

Update 设计模式.md
This commit is contained in:
郑永川 2018-12-28 17:21:45 +08:00 committed by GitHub
commit d111b42993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2836,8 +2836,8 @@ public class SubSystem {
System.out.println("setCD( " + cd + " )"); System.out.println("setCD( " + cd + " )");
} }
public void starWatching(){ public void startWatching(){
System.out.println("starWatching()"); System.out.println("startWatching()");
} }
} }
``` ```
@ -2849,7 +2849,7 @@ public class Facade {
public void watchMovie() { public void watchMovie() {
subSystem.turnOnTV(); subSystem.turnOnTV();
subSystem.setCD("a movie"); subSystem.setCD("a movie");
subSystem.starWatching(); subSystem.startWatching();
} }
} }
``` ```