Test Your Knowledge: Quiz

Question 8-1. What is the purpose of method overloading?

Question 8-2. How must overloaded methods differ from each other?

Question 8-3. What is the signature of a method?

Question 8-4. What are properties?

Question 8-5. What object-oriented programming principle do properties enforce?

Question 8-6. How do you create a read-only property?

Question 8-7. What is the purpose of automatic properties?

Question 8-8. How do you retrieve more than one return value from a method?

Question 8-9. Where must you use the keyword ref?

Question 8-10. What is the keyword out used for?

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.