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

admin2013-03-26  29

问题 创建一个名为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://kaotiyun.com/show/z8sp777K
0

最新回复(0)