MCQ
Which methods and variables are directly accessible only by the methods defined within a class?
  • Private
  • B
    Public
  • C
    Getter
  • D
    Setter

Answer

Correct option: A.
Private
A

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