Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#properties and auto-propertiesSingle-choice MCQ

What is the purpose of the `value` keyword inside a property's `set` accessor?

private int _age; public int Age { get => _age; set => _age = value < 0 ? 0 : value; }