Update 面向对象思想.md
This commit is contained in:
parent
4057c0e360
commit
9be698a3b4
@ -49,7 +49,7 @@ public class Person {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getGender() {
|
public String getGender() {
|
||||||
return gender == 0 ? "person" : "person";
|
return gender == 0 ? "man" : "woman";
|
||||||
}
|
}
|
||||||
|
|
||||||
public void work() {
|
public void work() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user