摘要:
package com.hanqi.test; public class jidongche { private String chepaihao;//车牌号 private int speed;//速度 private double weight;//载重量 //无参构造方法 jidongche() { } public String getChepaihao() { ... 阅读全文
摘要:
package com.hanqi.test; public class People { private String nema;//姓名 private int age;//年龄 private String sex;//性别 private double height;//身高 //创建所有属性的构造方法 public String getNema() { return... 阅读全文
摘要:
package com.hanqi.test; public class sanjiaoxing { private double a; private double b; private double c; public double getA() { return a; } public void setA(double a) { this.a = a; } ... 阅读全文
摘要:
package com.hanqi.test; public class Clock { int hh; int mm; int ss; String time; Clock(int h,int m,int s) { hh=h; mm=m; ss=s; time=hh+"时"+mm+"分"+ss+"秒"; } String show() { return time;... 阅读全文
摘要:
package com.hanqi.test; //银行账号 public class account { private String zhanghao;//账号 //私有余额 private double yue;//余额 //double cunkuan; // double qukuan; //构... 阅读全文