摘要: package Li; public class Person { String name; public Person() { super(); } public Person(String name) { super(); this.name = name; } public void eat(){ System.out.println(n... 阅读全文
posted @ 2017-04-11 21:08 苏轼的红烧肉 阅读(104) 评论(0) 推荐(0) 编辑
摘要: package Person; public class Jumin { String id; String name; String birth; public Jumin(String id, String name, String birth) { super(); this.id = id; this.name = name; this.birth = ... 阅读全文
posted @ 2017-04-11 20:36 苏轼的红烧肉 阅读(167) 评论(0) 推荐(0) 编辑
摘要: package Cun; public class Account { int id; double balance; double yearRate; public Account(int id, double balance, double yearRate) { super(); this.id = id; this.balance = balance; ... 阅读全文
posted @ 2017-04-11 19:34 苏轼的红烧肉 阅读(164) 评论(0) 推荐(0) 编辑
摘要: package Che; public class Veh { String brand; String color; public Veh() { super(); } public Veh(String brand, String color) { super(); this.brand = br... 阅读全文
posted @ 2017-04-11 17:08 苏轼的红烧肉 阅读(120) 评论(0) 推荐(0) 编辑
摘要: public class Student extends Person{ String school; String sno; public Student(){ super(); } public Student(String school, String sno,String name, int age, String sex) { super(name,age,sex);... 阅读全文
posted @ 2017-04-11 16:44 苏轼的红烧肉 阅读(129) 评论(0) 推荐(0) 编辑
摘要: public class Peashe extends Plant { public void action(int a){ System.out.println("豌豆射手正在左右晃"+a+"下"); } public void shoot(){ System.out.println("豌豆射手正在发射"); } } public class Plant { int pow... 阅读全文
posted @ 2017-04-11 16:26 苏轼的红烧肉 阅读(109) 评论(0) 推荐(0) 编辑