摘要:
package wanzai; public class Fruit { private static Fruit color=null; private Fruit() { } public static Fruit getcolor(){ if(color==null){ color=new F 阅读全文
摘要:
private int age; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getSex() { return sex; 阅读全文