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

admin2015-07-24  23

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

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

答案C

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

最新回复(0)