developmentor - a developer services company				  
				      
   Modules

Inheritance


1. True or false: C# supports multiple inheritance.
True
False

2. True or false: the CLR supports multiple inheritance for languages that want to support multiple inheritance.
True
False

3. A derived class...
Inherits fields and methods defined in its base 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

4. Which fields can be accessed from within an instance method defined on a derived class?
The fields defined in the derived 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.

5. Inheritance expresses what relationship between the derived class and the base class?
"has a"
"uses"
"can do"
"is a"

This material is excerpted from the Programming C# course offered by DevelopMentor.