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

admin2013-11-12  24

问题 创建一个名为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 AS Teacher
D、CREATE CLASS Teacher OF mylib AS myteacher

答案C

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

随机试题
最新回复(0)