Search⌘ K
AI Features

Quiz Yourself: Classes and OOP

Assess your understanding of C# classes and object-oriented programming.

We'll cover the following...
Technical Quiz
1.

Which of the following code snippets correctly implements a property that is publicly readable but can only be modified within its own class?

A.

public int Score { get; }

B.

public int Score { get; set; }

C.

public int Score { get; private set; }

D.

private int Score { public get; set; }


1 / 14
...