MCQ
Which method can we write if we want to allow data to be used by others?
  • A
    Mutator
  • Accessor
  • C
    Contractor
  • D
    main 0

Answer

Correct option: B.
Accessor
Accessor

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