What type in C# essentially expresses a behavior that a given class or structure may choose to support?
Interface
Can classes and structures in C# support more than one interface?
Yes
What is the keyword to define an interface in C#?
interface
public struct PitchFork : ICloneable, IPointy
{...}
What is this C# code showing?
A struct implementing two interfaces
public class Fork : Utensil, IPointy
{...}
What is this C# code showing?
A class with a base class that implements an interface
If you try to cast a type to an interface and the type is not compatible, what exception class is thrown?
InvalidCastException
IPointy itfPt2 = hex2 as IPointy;
What will be itfPt2 if hex2 cannot be treated as the specified interface (C#)?
null
What category of types in .NET are basically named collections of abstract members?
Interfaces
Previous card
First card
Random order
Next card