• 2022-05-29
    Which statements about inheritance are true?()
    A:  In Java programming language only allows single inheritance.
    B:  In Java programming language allows a class to implement only one interface.
    C:  In Java programming language a class cannot extend a class and implement a interface together.
    D:  In Java programming language single inheritance makes code more reliable.
  • A,D

    内容

    • 0

      Which of the following is NOT one of the 3 characteristics of object-oriented programming? A: extensibility B: inheritance C: encapsulation D: polymorphism

    • 1

      The following are not features of C language: ( ) A: Low level advaned programming language B: Allow direct access to the physical address to operate on the hardware C: Rich operators and data types in C language D: Object oriented programming language

    • 2

      Java中用于实现继承关键字是( )。 A: class B: extends C: implement D: interface

    • 3

      Which one of the following statements is wrong about inheritance? ( ) A: Inheritance is one of the features of OOP B: Protected members of a class can be inherited C: The inheriting class is called a subclass D: Private members of a class can be inherited and accessed

    • 4

      Java is a kind of object-oriented programming language.