Quiz Yourself: Classes and OOP II
Assess your understanding of inheritance, polymorphism, casting, and static members in C#.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
Why is pattern matching with is often preferred over as?
A.
It allows casting between unrelated types.
B.
It skips runtime type checking for speed.
C.
It combines checking and assignment safely.
D.
It bypasses private access modifiers.
1 / 12