forked from premaseem/DesignPatternsJava9
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.java
More file actions
21 lines (18 loc) · 533 Bytes
/
Client.java
File metadata and controls
21 lines (18 loc) · 533 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.premaseem;
/*
@author: Aseem Jain
@title: Design Patterns with Java 9
@link: https://premaseem.wordpress.com/category/computers/design-patterns/
@copyright: 2018 Packt Publication
*/
public class Client {
public static void main (String[] args) {
System.out.println("Singleton cook example ");
Cook cook1 = Cook.getInstance();
Cook cook2 = Cook.getInstance();
Cook cook3 = Cook.getInstance();
cook1.makeBroth();
cook2.makeBroth();
cook3.makeBroth();
}
}