Update 面向对象思想.md

This commit is contained in:
Inclusive Coding Bot 2022-03-30 18:58:50 -04:00 committed by GitHub
parent 4057c0e360
commit 9be698a3b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ public class Person {
}
public String getGender() {
return gender == 0 ? "person" : "person";
return gender == 0 ? "man" : "woman";
}
public void work() {