Multiple choice technology programming languages

What’s The Implicit Name Of The Parameter That Gets Passed Into The Class’ Set Method?

  1. Value

  2. Default

  3. Object

  4. Param

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

In C# and VB.NET, the implicit parameter name in a property setter is 'value'. When you write set { _field = value; }, 'value' automatically contains the value being assigned to the property. This is a language-defined implicit parameter name that you don't declare - it's available by default within the set accessor.