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?
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access