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

admin2013-03-26  28

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

选项 A、CREATE CLASS mylib OF myteacher AS Teacher
B、CREATE CLASS myteacher OF Teacher AS mylib
C、CREATE CLASS myteacher OF mylib ASTeacher
D、CREATE CLASS Teacher OF mylib AS myteacher

答案C

解析 建立类语句的格式为"CREATE CLASS 类名 OF 类库名AS父类",题中要求新类的类库名称是mylib,父类是Teacher,因此,正确的命令是"CREATE CLASS myteacher OF mylib AS Teacher"。
转载请注明原文地址:https://jikaoti.com/ti/eAZ0FFFM
0

随机试题
最新回复(0)