diff --git a/prototype/README.md b/prototype/README.md index 483a5e469..4cb8c0365 100644 --- a/prototype/README.md +++ b/prototype/README.md @@ -40,8 +40,12 @@ class Sheep implements Cloneable { public void setName(String name) { this.name = name; } public String getName() { return name; } @Override - public Sheep clone() throws CloneNotSupportedException { - return new Sheep(name); + public Sheep clone() { + try { + return (Sheep)super.clone(); + } catch(CloneNotSuportedException) { + throw new InternalError(); + } } } ```