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 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
- 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.