【简答题】一个Java应用程序中有两个类: Vehicle(用于描述机动车)和User(主类)。具体要求如下: Vehicle类ouble类型的变量speed,用于刻画机动车的速度,一个int型变量power,用于刻面机动车的功率。类中定义了speedUp(int s)方法,体现机动车有加速功能; 定义了speedDown( )方法,体现机动车有减速功能;定义了setPower(int p)方法,用...
【多选题】客户网络中仅有的两台路由器 MSR-1、MSR-2 之间的广域网链路采用 PPP 协议,两端通过配置 RIP互相学习到彼此的路由,目前路由学习正常,现在在 MSR-1的RIP配置中增加如下命令:
A.
SR-1-rip-1] silent-interface all
C.
此命令使 MSR-1 的所有接口只接收路由更新而不发送路由更新
D.
此命令使 MSR-1 的所有接口只发送路由更新而不接受路由更新
E.
配置此命令10分钟后,MSR-2路由表中的RIP路由消失
F.
配置此命令10分钟后,MSR-1路由表中的RIP路由消失
【单选题】给定如下Java代码,下列( )选项可以加入到Sample类中,并重写amount方法。 c1ass Super { public double amount(double a) { return a*0.8; } } public class Sample extends Super{ }
A.
public void amount (){ }
B.
public float amount ( ){ retum 4.0f; }
C.
public amount (double d){ }
D.
public double amount (double d){ return 4.0*d; }
【简答题】More than 20,000 drivers and front seat passengers are killed or seriously injured each year. At a speed of only 30 miles per hour it is the same as falling from a third floor window. Wearing a seat b...
【简答题】The more seriously this is sought,______(likely)positive attitudes towards leisure as well as academic work will be encouraged.