public class CellPhone extends Telephone {?? ?@Override?? ?public void call() {?? ??? ?// TODO Auto-generated method stub?? ??? ??? ??? ?CellPhone a1= new CellPhone();?? ??? ?a1.call();?? ??? ??? ??? ?System.out.println("call");?? ?}?? ?public void call(CellPhone a2){?? ??? ?a2.call();?? ??? ?System.out.println("s");?? ??? ??? ?}請問,a1 和 a2實例化的方式一樣嗎?我不怎么懂a2的方式,請大俠指教
添加回答
舉報
0/150
提交
取消