Movatterモバイル変換


[0]ホーム

URL:


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

Commit45fee18

Browse files
committed
adds commit to the President class.
1 parente30d115 commit45fee18

File tree

1 file changed

+4
-0
lines changed
  • src/main/java/com/designpatterns/structural/proxy/president

1 file changed

+4
-0
lines changed

‎src/main/java/com/designpatterns/structural/proxy/president/President.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
importcom.designpatterns.creational.singleton.Singleton;
44

5+
/**
6+
* This is a class which is gonna be proxied by PresidentSecretary.
7+
* Whenever any citizen decides to contact the President, they have to talk to the Secretary.
8+
*/
59
publicclassPresident {
610

711
privatevolatilestaticPresidentinstance =null;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp