mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-04 08:13:20 +00:00
corrected typos
This commit is contained in:
1 parent
f0a1af0c46
commit
08cc50e875
7 files changed
+9
-9
No files matched your search
+1
-1
@@ -36,7 +36,7 @@ In Java, it can be easily done by implementing `Cloneable` and overriding `clone
|
||||
|
||||
```
|
||||
class Sheep implements Cloneable {
|
||||
privage String name;
|
||||
private String name;
|
||||
public Sheep(String name) { this.name = name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
public String getName() { return name; }
|
||||
|
||||
Reference in new issue
Block a user