Multiple choice technology programming languages

Properties meant for protecting a field in a class?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Properties in object-oriented languages like C# or Java provide encapsulation by controlling access to class fields. They act as intermediaries, allowing validation and computed logic while hiding the actual field storage.