Given:Which statement is true about the class of an object that can reference the variable base? ()A.It can be any class.B.No class has access to base.C.The class must belong to the geometry package.D.The class must be a subclass of the class Hypotenuse.

题目
Given:Which statement is true about the class of an object that can reference the variable base? ()

A.It can be any class.

B.No class has access to base.

C.The class must belong to the geometry package.

D.The class must be a subclass of the class Hypotenuse.


相似考题
更多“Given:Which statement is true about the class of an object that can reference the variable base? () ”相关问题
  • 第1题:

    Throwable类是直接从( )类继承来的。

    A.Exception及其子集

    B.Object类

    C.Example

    D.Class类


    正确答案:B
    解析:Java语言的类库中提供一个Throwable类,所有的异常对象都必须是它的实例或其子类的实例。Throwable类中的方法对抛出异常进行描述。Throwable是直接从Object类继承来的,是所有异常类的父类。

  • 第2题:

    C++ is used with proper(66) design techniques.

    A.class-oriented

    B.object-based

    C.face to object

    D.object-oriented


    正确答案:D
    解析:C++使用了一定的面向对象设计技术。

  • 第3题:

    如下说法正确的是正确的_________。

    A.Class类是Object类的超类

    B.Object是一个final类

    C.Class类的对象可使用new运算符创建

    D.Object类是Class类的超类。


    D 解析:类声明的格式。

  • 第4题:

    Traditional structured analysis techniques focus upon the flow of(71)within a system. Object - oriented analysis emphasizes the building of real - world models. It examines requirements from the perspective of the classes and objects found in the vocabulary of the(72)domain.

    Traditional system design method emphasizes the proper and effective structure of a complex system. Object -oriented design method encompasses the process of object -oriented decomposition and a(73)for depicting both logical and physical as well as static and dynamic models of the system under design.

    Object - oriented programming is a method of implementation in which programs are organized as cooperative collections of objects, each of which represents an(74)of some class, and whose classes are all members of a hierarchy of classes united via(75)relationships.

    A.control

    B.program

    C.data

    D.reference


    正确答案:C

  • 第5题:

    不能被实例化的类是( )。

    A.Object类

    B.Class类

    C.Dictionary类

    D.System类


    正确答案:D

  • 第6题:

    32、加载JDBC驱动是通过调用方法 java.lang.Class.()实现的。写出任意3种Statement接口:()、()、()。


    Class.forName() ;java.lang.Class.forName()