1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

[docs update] 更正浅拷贝的示例

update java-basic-questions-02.md
This commit is contained in:
Tianci.Xiong 2022-02-12 15:50:43 +08:00 committed by GitHub
parent e346130289
commit 6c784c7c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ public class Student {
```java ```java
public class Address implements Cloneable{ public class Address implements Cloneable{
private final String name; private String name;
// 省略构造函数、Getter&Setter方法 // 省略构造函数、Getter&Setter方法
@Override @Override
public Address clone() { public Address clone() {