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 of the following is false? ( ) A: A static method must be used to access private static instance variables. B: A static method can be accessed even when no objects of its class have been instantiated. C: A static method has no this reference. D: A static method can call instance methods directly.
- When we are introducing objects, presenting options and facts, and distinguishing between points, ideas, and facts, what gesture can we use? A: The “Chop”. B: The “Give”. C: The “Show”. D: None of the above.
- Working at a company ‘at will’: A: Means you have no long-term contract; B: Means you can contribute part of your salary (tax-free) to your will (inheritance); C: Is usually to the employee’s advantage; D: None of the above.
- The new module is versatile, because A: it can be a calculator B: it can send a fax C: it can play computer games D: all of the above
内容
- 0
The objective of image interpretation is: A: Identification and recognition of objects B: Measuring the thickness of objects C: Estimate the age of the objects D: None of the above
- 1
Jenny objects ______ like a child. A: to being treated B: to be treated C: being treated D: for being treated
- 2
When<br/>we are introducing objects, presenting options and facts, and<br/>distinguishing between points, ideas, and facts, what gesture can we<br/>use?() A: The “Give”. B: The “Chop”. C: None of the above. D: The “Show”.
- 3
The basic view of object-oriented programming is that all systems are composed of ( ). A: classes B: objects C: functions D: methods
- 4
None of the young are happy because ______. A: they are good at doing things they are not fond of B: they would .like to do something they are not good at C: they think they are good at nothing and do not know what they can do D: all of the above