MCQ
Which method is used if we want to allow other methods to modify the data value ?
  • A
    Private
  • B
    Protected
  • Setter
  • D
    Getter

Answer

Correct option: C.
Setter
C

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free