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

17 查阅

创建一个名为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'’。

计算机二级