作业帮 > 综合 > 作业

下面JAVA题中~为什么D不正确

来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/17 15:13:07
下面JAVA题中~为什么D不正确
Given:
1. public class Blip{
2. protected int blipvert(int x){return 0;}
3. }
4. class Vert extends Blip{
5. //insert code here
6. }
Which five methods, inserted independently at line 5, will compile? (Choose five.)
A. public int blipvert(int x){return 0;}
B. private int blipvert(int x){return 0;}
C. private int blipvert(long x){return 0;}
D. protected long blipvert(int x){return 0;}
E. protected int blipvert(long x){return 0;}
F. protected long blipvert(long x){return 0;}
G. protected long blipvert(int x, int y){return 0;}
答案
下面JAVA题中~为什么D不正确
返回值类型不同