下面不是JAVA关键字是 A: class B: new C: subclass D: interface
下面不是JAVA关键字是 A: class B: new C: subclass D: interface
INSTANCE槽是用来建立( )槽的 逆关系 。 A: ISA B: AKO C: SUBCLASS D: MEMBEROF
INSTANCE槽是用来建立( )槽的 逆关系 。 A: ISA B: AKO C: SUBCLASS D: MEMBEROF
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
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.
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
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#.
观察下面的程序片断,填写空白处。 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; } }