Skip to content

Commit 45fee18

Browse files
committed
adds commit to the President class.
1 parent e30d115 commit 45fee18

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

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
import com.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
public class President {
610

711
private volatile static President instance = null;

0 commit comments

Comments
 (0)