mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 22:13:22 +00:00
#984 update Builder readme
This commit is contained in:
1 parent
0272d71851
commit
2628cc0dfc
1 file changed
+1
-1
+1
-1
@@ -110,7 +110,7 @@ And then we have the builder
|
||||
And then it can be used as:
|
||||
|
||||
```java
|
||||
Hero mage = new Hero.Builder(Profession.MAGE, "Riobard").withHairColor(HairColor.BLACK).withWeapon(Weapon.DAGGER).build();
|
||||
var mage = new Hero.Builder(Profession.MAGE, "Riobard").withHairColor(HairColor.BLACK).withWeapon(Weapon.DAGGER).build();
|
||||
```
|
||||
|
||||
## Applicability
|
||||
|
||||
Reference in new issue
Block a user