MCQ
While using access or and mutator method, it is a must to write ‘get’ and ‘set’ method for the following one only.
  • A
    For each class
  • For each instance variable
  • C
    For each integer object
  • D
    None of these

Answer

Correct option: B.
For each instance variable
For each instance variable

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