Test Your Knowledge

ClassesAndOOP_Lesson2 Quiz

Answer all questions to test your understanding

1 What is a field in a C# class?
2 What is the purpose of a property in C#?
3 What is an auto-implemented property in C#?
4 What does the 'init' accessor do in a property?