C# objects quiz

  • Admin
  • 1 min read

Nine questions on classes, constructors, properties, inheritance and interfaces.

C#

C# objects quiz

9 questions, instant feedback

Question 1 of 9 What does a property add over a public field?
Question 2 of 9 What does an auto-property { get; set; } generate?
Question 3 of 9 What does init allow on a property?
Question 4 of 9 What does a constructor do?
Question 5 of 9 Which keyword prevents a class from being inherited?
Question 6 of 9 What is required to override a method?
Question 7 of 9 What does an interface member without a body require?
Question 8 of 9 What does a record give you?
Question 9 of 9 What does the override of ToString affect?

Your answers stay in this browser. Nothing is sent to a server.