Topic: super问题请大家来帮忙呀 |
Print this page |
1.super问题请大家来帮忙呀 | Copy to clipboard |
Posted by: wangfuyin Posted on: 2005-11-28 11:05 class Car{ class Wheel{ } } class PlaneWheel extends Car.Wheel{ PlaneWheel(Car car){ car.super(); //这句什么意思?为什么要这样写? //内存构是什么样子的? } public static void main(String[] args){ Car car = new Car(); PlaneWheel pw = new PlaneWheel(car); } |
2.Re:super问题请大家来帮忙呀 [Re: wangfuyin] | Copy to clipboard |
Posted by: ranchgirl Posted on: 2005-11-28 11:23 Is this code compilable???? Please don't put garbage here to waste everyone's time!!!! Thanks! |
3.Re:super问题请大家来帮忙呀 [Re: wangfuyin] | Copy to clipboard |
Posted by: shibin20011983 Posted on: 2005-12-04 18:00 是可以编译的呀,只不过楼主没有输出什么东西而已 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |