Question 1 of 80
In which of these situations are interfaces better than abstract classes?
When you need to define an object type's characteristics, use an interface. When you need to define an object type's capabilities, use an abstract class.
Interfaces are a legacy of older versions of C#, and are interchangeable with the newer abstract class feature.
When you need a list of capabilities and data that are classes-agnostic, use an interface. When you need a certain object type to share characteristics, use an abstract class.
You should use both an interface and an abstract class when defining any complex object.
Time Remaining:01:30
Questions: 1/80