Quiz Yourself: Additional Features

Test your knowledge of the C# programming language additional features.

We'll cover the following...
Technical Quiz
1.

Why might a developer choose to use an extension method instead of inheritance?

A.

The class is sealed or the developer does not have access to the source code.

B.

Inheritance negatively impacts performance, whereas extension methods are faster.

C.

Extension methods allow access to private and protected members of the class.

D.

Inheritance is deprecated in modern C# and should be avoided for new code.


1 / 12