Test Your Knowledge: Quiz

Question 6-1. How do you create a user-defined type in C#?

Question 6-2. What is the difference between a class and an object?

Question 6-3. Why should member fields be private?

Question 6-4. What is encapsulation?

Question 6-5. What is specialization and how is it implemented in C#?

Question 6-6. What is polymorphism?

Question 6-7. What is the difference between the is-a and the has-a relationship?

Question 6-8. What are access modifiers?

Question 6-9. Describe the differences between state, capabilities, and responsibilities.

Question 6-10. What is a use-case scenario?

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.