一道java题,需要实现,写全程序
答案:1 悬赏:60 手机版
解决时间 2021-03-28 05:50
- 提问者网友:不爱我么
- 2021-03-27 19:45
一道java题,需要实现,写全程序
最佳答案
- 五星知识达人网友:长青诗
- 2021-03-27 20:18
public abstract class Car (
int maxSpeed;
final int exceed = 150;
int speed;
public abstract void stop () {}
if(spees>exceed)(
sum=sum-1;
System.out.println(“你已超速,积分被扣一分,请交罚款200元!”)
}
}
}
public class Ford
{
Int sum=12;
Int maxSpeed=200;
public void stop (int speed)
{
If (speed>exceed)
super . exceed(int speed)
else
System.out.println(“您的速度正常,祝您平安快乐!”)
}
}
}
public class QQ
{
int sum=12;
Int maxSpeed=200;
public void stop (int speed)
{
If (speed>180)
System.out .println(“您的速度已超过200,请停车,交罚款400!”)
Else
{
if(speed>exceed)
Super.exceed(int speed)
else
System.out.println(“您的速度正常,祝你平安快乐!”)
}
}
}
int maxSpeed;
final int exceed = 150;
int speed;
public abstract void stop () {}
if(spees>exceed)(
sum=sum-1;
System.out.println(“你已超速,积分被扣一分,请交罚款200元!”)
}
}
}
public class Ford
{
Int sum=12;
Int maxSpeed=200;
public void stop (int speed)
{
If (speed>exceed)
super . exceed(int speed)
else
System.out.println(“您的速度正常,祝您平安快乐!”)
}
}
}
public class QQ
{
int sum=12;
Int maxSpeed=200;
public void stop (int speed)
{
If (speed>180)
System.out .println(“您的速度已超过200,请停车,交罚款400!”)
Else
{
if(speed>exceed)
Super.exceed(int speed)
else
System.out.println(“您的速度正常,祝你平安快乐!”)
}
}
}
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯