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

admin2010-04-08  43

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

选项 A、CREATE CLASS mylib OF student As Pemon
B、CREATE CLASS student OF Pe~on As mylib
C、CREATE CLASS student 0F mylib As Pe~on
D、CREATE CLASS Person OF mylib As student

答案C

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

随机试题
最新回复(0)