mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 16:15:23 +00:00
Update README.md (#1592)
This commit is contained in:
1 parent
7255c2c5e7
commit
29ceac2fb0
1 file changed
+1
-1
+1
-1
@@ -98,7 +98,7 @@ Now on the client code we can create different types of cars using the factory c
|
|||||||
var car1 = CarsFactory.getCar(CarType.FORD);
|
var car1 = CarsFactory.getCar(CarType.FORD);
|
||||||
var car2 = CarsFactory.getCar(CarType.FERRARI);
|
var car2 = CarsFactory.getCar(CarType.FERRARI);
|
||||||
LOGGER.info(car1.getDescription());
|
LOGGER.info(car1.getDescription());
|
||||||
LOGGER.info(car2.getDescription());;
|
LOGGER.info(car2.getDescription());
|
||||||
```
|
```
|
||||||
|
|
||||||
Program output:
|
Program output:
|
||||||
|
|||||||
Reference in new issue
Block a user