String basketball="打篮球"
System.out.println(hobby+basketball)
//球类public class Ball{
protected Double size//大小
protected Double weight//体重
protected String color//颜色
//默认构造
public Ball(){
}
//带参构造
public Ball(Double weight,Double size,String color){
this.size=size
this.weight=weight
this.color=color
}
}
//篮球类
public class BasketBall extends Ball{
//带参构造
public BasketBall(Double weight, Double size, String color) {
super(weight, size, color)
showMe();//也可在生成篮球的时候调用输入方法
}
//默认构造
public BasketBall() {
showMe();//也可在生成篮球的时候调用输入方法
}
//打印信息
public void showMe(){
System.out.print("的大小是:"+size+"我的体重是:"+weight+"颜色是:"+color)
}
public static void main(String[] args) {
//使用带参构造 new 出篮球对象
BasketBall basketBall=new BasketBall(20.0, 17.0, ";蓝色")
//调用 输入方法
basketBall.showMe()
}
}
NBA2006挺不错的,在多特网站下载。目前我的玩06的命中率在中投60%左右,内线80%,外线49%,我最喜欢太阳队,纳什的三分很准,小斯的篮板很强,其他人都不错!你可以试试。这样可以么?