创建一个名为student的新类,保存新类的类库名称是mylib,新类的父类是Person,正确的命令是(  )。

admin2013-11-28  34

问题 创建一个名为student的新类,保存新类的类库名称是mylib,新类的父类是Person,正确的命令是(  )。

选项 A、CREATE CLASS mylib OF student As Person
B、CREATE CLASS student OF Person As mylib
C、CREATE CLASS student OF mylib As Person
D、CREATE CLASS Person OF mylib As student

答案C

解析 建立类语句的格式为"CREATE CLASS 类名 OF 类库名? AS 父类",题中要求新类的类库名称是mylib,父类是person,因此,正确的命令是"CREATE CLASS student OF mylib As Person",即C选项正确。
转载请注明原文地址:https://kaotiyun.com/show/3vop777K
0

随机试题
最新回复(0)