Test Your Knowledge: Quiz

Question 13-1. What is the difference between an interface and a class that implements an interface?

Question 13-2. What is the difference between an interface and an abstract base class?

Question 13-3. How do you create an instance of an interface?

Question 13-4. How do you indicate that class MyClass derives from class MyBase and implements the interfaces ISuppose and IDo?

Question 13-5. What two operators can tell you whether an object’s class implements an interface?

Question 13-6. What is the difference between the is and as operators?

Question 13-7. What does it mean to “extend” an interface?

Question 13-8. What is the syntax for extending an interface?

Question 13-9. What does it mean to override an interface implementation?

Question 13-10. What is explicit interface implementation and why would you use it?

Get Learning C# 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.