首页 > 试题广场 >

以下哪些方法是对List{protected abstrac

[不定项选择题]
以下哪些方法是对List{protected abstract T get(int);}的重载【多选】( )
  • MyListextends List{public T get(int){…}}
  • MyintList extends List{public integer get(int){…}}
  • MyintList extends List{private integer get(int){…}}
  • MyintList extends List{protected int get(int){…}}
abd 重写的方法得访问权限不得小于父类的, 只能protected public 但是我对int Integer 是否和T匹配,我有点懵 好像只能选a 还请指点
编辑于 2016-05-24 23:36:06 回复(0)
此题应该是问重写吧,重载的话 感觉一个都不对,因为参数列表都是一样的,仅返回值不同不构成重载。重写的话,返回值应该相同,所以求讲解
发表于 2015-07-29 00:53:20 回复(0)
CD
对于覆写的方法,子类方法的访问范围小于等于超类方法的访问范围
发表于 2015-03-30 19:54:46 回复(1)
C,D 重载方法的权限小于被重载方法的权限
发表于 2015-01-08 17:17:02 回复(0)