皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
请看下面的程序,其中 TrafficTool是Bus的父类,判断执行main函数时,程序是否会报错,如果会报错,请指出错误。 TrafficTool.h #import @interface TrafficTool : NSObject { @public int passenger; } - (void)carryPassenger; @end TrafficTool.m #import "TrafficTool.h" @implementation TrafficTool - (void)carryPassenger { NSLog(@"TrafficTool could carry %d passengers",passenger); } @end Bus.h #import "TrafficTool.h" @interface Bus : TrafficTool - (void)drainOil; - (void)carryPassenger; @end Bus.m #import "Bus.h" @implementation Bus - (void)carryPassenger { NSLog(@"Bus could carry %d passengers",passenger); } - (void)drainOil { NSLog(@"bus must drain oil"); } @end main.m #import #import "TrafficTool.h" #import "Bus.h" int main(int argc, const char * argv[]) { TrafficTool *tt = [[Bus alloc]init]; [tt drainOil]; }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】What is Britain's highest mountain?
【判断题】武则天一直希望建立制度和法制,它们都是对君主权力的制约。()
A.
正确
B.
错误
【单选题】Y-D降压启动是指电动机启动时,把定子绕组联结成( ),以降低启动电压,限制启动电流。
A.
D形
B.
Y形
C.
DD形
D.
YY形
【单选题】What is the world's highest waterfall?
A.
Tugela Falls (South Africa)
B.
Angel Falls (Venezuela)
C.
Sutherland Falls (New Zealand)
【单选题】What's the highest mountain in the world?
A.
Mount Lushan
B.
Mount Taishan
C.
Mount Everest
D.
Mount Kilimanjaro
【多选题】下面选项中,属于盒子模型主要属性的是( )
A.
padding
B.
margin
C.
type
D.
border
【单选题】What's the ______ of the mountain? It's about 2,000 metres. [     ]
A.
highest
B.
the highest
C.
height
D.
longest
【判断题】Y-D降压启动是指电动机启动时,把定子绕组联结成Y形,以降低启动电压,限制启动电流,待电动机启动后,再把定子绕组改成D形,使电动机全压运行。
A.
正确
B.
错误
【简答题】What is the world’s highest highland?
【单选题】______, the market will have to overcome some of the highest hurdles it's seen in a long time.
A.
But to happen in that order
B.
But for that in order to happen
C.
But in order that to happen
D.
But in order for that to happen
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题