Beginner C#
Q11 / 100

What is a property in C#?

Correct! Well done.

Incorrect.

The correct answer is B) A class member with get/set accessors providing controlled access to a backing field

B

Correct Answer

A class member with get/set accessors providing controlled access to a backing field

Explanation

public int Age { get; set; } is an auto-property. Custom getters/setters allow validation or computed values.

Progress
11/100