| ||||||
| ||||||

Inheritance1. True or false: C# supports multiple inheritance. True 2.
True or false: the CLR supports multiple inheritance for languages that want to support
multiple inheritance.False True 3.
A derived class...False Inherits fields and methods defined in its base class 4.
Which fields can be accessed from within an instance method defined on a derived class?Can add new fields Can add new methods Can hide methods defined in the base class Expresses a specialization of the base class All of the above None of the above The fields defined in the derived class. 5.
Inheritance expresses what relationship between the derived class and the base class?The fields defined in the derived class, plus all of the public fields defined in the base class. The fields defined in the derived class, plus all of the public and protected fields defined in the base class. The fields defined in the derived class, plus all of the fields defined in the base class. "has a" "uses" "can do" "is a" This material is excerpted from the Programming C# course offered by DevelopMentor. |