All challenges
Multiple ChoiceIntermediate 30s

Class Private Fields

Choose the best answer for: #privateField
Options
  1. 1#field is the same as _field, only a naming convention
  2. 2#field is readable from outside the class as a property
  3. 3#field is truly private at the language level
  4. 4#field is just a convention, checked by the compiler

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle