mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Merge pull request #1527 from tiancixiong/patch-2
[docs update] 更正浅拷贝的示例代码
This commit is contained in:
commit
88f36fd6e3
@ -123,7 +123,7 @@ public class Student {
|
||||
|
||||
```java
|
||||
public class Address implements Cloneable{
|
||||
private final String name;
|
||||
private String name;
|
||||
// 省略构造函数、Getter&Setter方法
|
||||
@Override
|
||||
public Address clone() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user