Workshop

The Workshop provides quiz questions to help solidify your understanding of what was covered in this hour. Answers are provided in Appendix A, “Quiz Answers.”

Quiz

1:In what cases would you use interfaces as opposed to regular class inheritance? Why would you use class inheritance instead of interfaces?
2:Can you add an implementation for any of the .NET Framework interfaces?
3:Can an interface contain private or protected methods and/or properties?
4:Can an interface contain data members instead of properties?
5:Can you obtain an interface pointer from one object and then cast it to the same interface type but from a different object?

Get Sams Teach Yourself Visual C++® .NET in 24 Hours 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.