给定如下 Java 代码,下列()选项可以加入到 Sample 类中,并重写 amount 方法。 class Super{ public double amount(double a) { return a*0.8; } } public class Sample extends Super{ }
A.
public void amount() {}
B.
public float amount() {return 4.0f;}
C.
public amount(double d) {}
D.
public double amount(double d) {return 4.0*d;}
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】回答问题。 1. What is the capital city of China? ___________________________________________ 2. What's this? (中国的首都) ___________________________________________ 3. What country is east of China? __________...
【简答题】听对话,回答问题。 1. What's the girl's problem? [ ] A. She argued with her best friend. B. She had an argument with her mum. C. She lost her best friend's phone number. 2. Why doesn't the girl want to wri...