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#.
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 words have different meaning as extranuclear inheritance: ( ) A: Mendelian inheritance B: extra-chromosomal inheritance C: maternal inheritance D: cytoplasmic inheritance
- 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 words have different meaning as extranuclear inheritance: A: Mendelian inheretance B: extra-chromosomal inheritance C: cytoplasmic inheritance D: maternal inheritance
- Which type of inheritance is present when a trait is characterized as having more than two alleles that govern its inheritance? A: polygenic traits B: incomplete dominance C: sex-linked traits D: multiple alleles
- C#利用继承实现多态性,要用到________关键字。 A: virtual和override B: operator和run C: index和array D: inheritance和polymorphism