创建一个名为student的新类,保存新类的类库名称是mylib,新类的父类名是Person,正确的命令是( )。A.CREATE CLASS mylib OF student AS PcrsonB.CREATE CLASS student OF Person AS mylibC.CREATE CLASS student OF mylib AS PersonD.CREATE CLASS Person OF mylib AS student
创建一个名为student的新类,保存新类的类库名称是mylib,新类的父类名是Person,正确的命令是( )。
A.CREATE CLASS mylib OF student AS Pcrson
B.CREATE CLASS student OF Person AS mylib
C.CREATE CLASS student OF mylib AS Person
D.CREATE CLASS Person OF mylib AS student
相关考题:
已建立一个名为teacher的类,保存该类的类库名称是mylib,则删除该类正确的命令是( )。A)REMOVE CLASS mylib OF teacherB)REMOVE CLASS teacher OF mylibC)DELETE CLASS mylib OF teacherD)DELETE CLASS teacher OF rnylib
( 30 )下列代码声明了 3 个类class Person{};class Student:public Person{};class Undergraduate:Student{};下列关于这些类之间关系的描述中,错误的是A )类 Person 是类 Undergraduate 的基类B )类 Undergraduate 从类 Student 公有继承C )类 Student 是类 Person 的派生类D )类 Undergraduate 是类 Person 的派生类
创建一个名为student的新类,保存新类的类库名称是mylib,新类的父类是Person,正确的命令是A.CREATE CLASS mylib OF student As PemonB.CREATE CLASS student OF Pe~on As mylibC.CREATE CLASS student 0F mylib As Pe~onD.CREATE CLASS Person OF mylib As student
创建一个名为myteacher的新类,保存新类的类库名称是mylib,新类的父类是Teacher,正确的命令是 ( )。A. CREATE CLASS mylib OF myteacher AS TeacherB. CREATE CLASS myteacher OF Teacher AS mylibC. CREATE CLASS myteacher OF mylib AS TeacherD. CREATE CLASS Teacher OF mylib AS myteacher
在面向对象方法中,继承用于( )。 通过继承关系创建的子类( )A. 利用已有类创建新类B. 在已有操作的基础上添加新方法C. 为已有属性添加新属性D. 为已有状态添加新状态A. 只有父类具有的属性B. 只有父类具有的操作C. 只能有父类所不具有的新操作D. 可以有父类的属性和方法之外的新属性和新方法
( 33 ) 创建一个名为 student 的新类 , 保存新类的类库名称是 mylib, 新类的 父 类是 P erson, 正确的命令是A ) CREATE CLASS mylib OF student A s P ersonB ) CREATE CLASS student OF P erson A s mylibC ) CREATE CLASS student OF mylib A s P ersonD ) CREATE CLASS P erson OF mylib A s student
在VFP中,创建的新类可以被保存在类库文件中,其扩展名为__________。