题目内容

A class’s responsibilities include:一个类的功能包括:

A. the things a class is responsible for doing 类负责做的事情
B. the things a class is responsible for knowing 一个类负责了解的东西
C. both A and BA和B都是
D. neither A or B

查看答案
更多问题

This is a group of related classes.以下哪个是一组相关的类

A. archive 存档
B. package 包
C. collection 集合
D. attachment 附件

Quite often you have to use this statement to make a group of classes available to a program.你必须使用此语句才能使一组类对程序可用。

A. import
B. use
C. link
D. assume 假设

The scope of a public instance field is:公共实例字段的范围是:

A. only the class in which it is defined 只定义它的类
B. inside the class, but not inside any method 在类中,但不在任何方法中
C. inside the parentheses of a method header 在方法头的括号内
D. the instance methods and methods outside the class 实例方法和类之外的方法

Instance methods do not have this key word in their headers:实例方法的头中没有以下哪个关键字:

A. public
B. static
C. private
D. protected

答案查题题库