• 2022-06-19 问题

    下面不是JAVA关键字是 A: class B: new C: subclass D: interface

    下面不是JAVA关键字是 A: class B: new C: subclass D: interface

  • 2022-06-17 问题

    INSTANCE槽是用来建立( )槽的 逆关系 。 A: ISA B: AKO C: SUBCLASS D: MEMBEROF

    INSTANCE槽是用来建立( )槽的 逆关系 。 A: ISA B: AKO C: SUBCLASS D: MEMBEROF

  • 2022-05-30 问题

    Anew type ________. A: is a subclass B: can be derived from an existing type C: can’t be called a derived type D: inherits all features of existing type and has additional features

    Anew type ________. A: is a subclass B: can be derived from an existing type C: can’t be called a derived type D: inherits all features of existing type and has additional features

  • 2022-05-29 问题

    An advantage of inheritance is that: ( ) A: Objects of a subclass can be treated like objects of their superclass. B: All methods can be inherited. C: All instance variables can be uniformly accessed by subclasses and superclasses. D: None of the above.

    An advantage of inheritance is that: ( ) A: Objects of a subclass can be treated like objects of their superclass. B: All methods can be inherited. C: All instance variables can be uniformly accessed by subclasses and superclasses. D: None of the above.

  • 2022-05-29 问题

    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

    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

  • 2022-05-29 问题

    Which of the following conventions about inheritance in C# is correct? A: A subclass in C# can have multiple direct parents. B: C# does not support multiple inheritance. C: C# does not support multi-level inheritance. D: Inheritance is not passable in C#.

    Which of the following conventions about inheritance in C# is correct? A: A subclass in C# can have multiple direct parents. B: C# does not support multiple inheritance. C: C# does not support multi-level inheritance. D: Inheritance is not passable in C#.

  • 2022-06-15 问题

    观察下面的程序片断,填写空白处。 class SuperClass { int data; void setData(int newData) { this.data = newData; } int getData() { return this.data; } } class SubClass _________ SuperClass { int suhData; void setSubData(int newData) { this.suhData = __________ } int getData() { return this.suhData; } }

    观察下面的程序片断,填写空白处。 class SuperClass { int data; void setData(int newData) { this.data = newData; } int getData() { return this.data; } } class SubClass _________ SuperClass { int suhData; void setSubData(int newData) { this.suhData = __________ } int getData() { return this.suhData; } }

  • 1