摘要:
1 public class Vehicles { 2 String brand; 3 String color; 4 public Vehicles(String brand,String color){ 5 this.brand=brand; 6 this.color=color; 7 } 8 public void run(){ 9 ... 阅读全文
posted @ 2018-07-26 10:59
九九九九
阅读(6289)
评论(0)
推荐(0)
摘要:
1 public class Person { 2 String name; 3 int age; 4 public Person(String name,int age){ 5 this.name=name; 6 this.age=age; 7 } 8 9 } 10 ------------------------------------------------... 阅读全文
posted @ 2018-07-26 10:28
九九九九
阅读(18999)
评论(0)
推荐(0)
摘要:
1 public class Number { 2 private int n1; 3 private int n2; 4 public Number(int n1,int n2){ 5 6 this.n1=n1; 7 this.n2=n2; 8 } 9 10 public void addition(){ 11 ... 阅读全文
posted @ 2018-07-26 10:09
九九九九
阅读(7270)
评论(0)
推荐(0)
摘要:
1 public class Vehicle { 2 double speed; 3 double size; 4 Vehicle(){ 5 speed=1.0; 6 size=2.0; 7 } 8 void move(){ 9 } 10 void setSpeed(int spee... 阅读全文
posted @ 2018-07-26 09:35
九九九九
阅读(5167)
评论(0)
推荐(0)
浙公网安备 33010602011771号