已建立一个名为teacher的类,保存该类的类库名称是mylib,则删除该类正确的命令是( )。
A)REMOVE CLASS mylib OF teacher
B)REMOVE CLASS teacher OF mylib
C)DELETE CLASS mylib OF teacher
D)DELETE CLASS teacher OF rnylib
第1题:
创建一个名为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
第2题:
定义一个类名为MyClass的类,并且该类可被所有类访问,那么该类的正确声明应为()
A、private class MyClass extends Object
B、class MyClass extends Object
C、public class MyClass
D、protected class MyClass extends Object
第3题:
如果一个JavaApplet源程序文件只定义有一个类,该类的类名为MyApplet,则类MyApplet必须是()类的子类并且存储该源程序文件的文件名为()。
Applet;MyApplet.java
略
第4题:
创建一个名为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
第5题:
( 33 ) 创建一个名为 student 的新类 , 保存新类的类库名称是 mylib, 新类的 父 类是 P erson, 正确的命令是
A ) CREATE CLASS mylib OF student A s P erson
B ) CREATE CLASS student OF P erson A s mylib
C ) CREATE CLASS student OF mylib A s P erson
D ) CREATE CLASS P erson OF mylib A s student