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.
How can we enable conversion between two incompatible user-defined types?
A.
Define a custom cast operator using the operator keyword.
B.
Explicit conversion is the only possible option here.
C.
Use the as operator for conversion.
D.
No casting is possible if there is no implicit conversion between types.
1 / 12
...