use*_*983 0 java oop
我有2节课
class A { private int count; } class B extends A { //need to access count here }
我可以使用哪些标准方法来访问它?
Imr*_*err 7
制作count protected或添加getCount()方法A.
count
protected
getCount()
A
归档时间:
12 年,4 月 前
查看次数:
320 次
最近记录:
12 年,3 月 前