A has-a relationship is implemented via inheritance.
错误
举一反三
- 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#.
- Inheritance is also known as the ( ) A: uses-a relationship. B: has-a relationship. C: knows-a relationship. D: is-a relationship.
- 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.
- The maintenance department has no relationship with other department.
- Our government has implemented ____ of religious belief policy. A: freedom B: strict C: friendly
内容
- 0
The relationship between employers and employees has been studied ________.
- 1
Which words have different meaning as extranuclear inheritance: ( ) A: Mendelian inheritance B: extra-chromosomal inheritance C: maternal inheritance D: cytoplasmic inheritance
- 2
The government has implemented a lot of policies to help the ______families. A: wealthy B: unemployed C: disadvantaged D: comforting
- 3
In the object-oriented system, we use relationship to express that a larger “whole” class includes one or more smaller “partial” classes. A: generalization B: aggregation C: inheritance D: composition
- 4
Scientific research has two major characteristics, one is inheritance, and the other is () A: Knowledge B: Innovative C: Systematic D: Continuity