Search⌘ K
AI Features

Quiz Yourself: Classes and OOP II

Assess your understanding of inheritance, polymorphism, casting, and static members in C#.

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

Which statement accurately describes the behavior of constructors in abstract classes?

A.

Abstract classes cannot have constructors because they cannot be instantiated directly.

B.

Constructors in abstract classes are only valid if they are marked as static.

C.

Abstract class constructors are called by derived classes using the base keyword.

D.

Abstract class constructors are executed only when the abstract class is cast to an interface.


1 / 12
...