MCQ
When a program contains two or more classes, which is the method only one class can contain?
  • A
    Method which displays values of attributes
  • B
    Method to perform calculation on attributes
  • C
    a and b both
  • main0

Answer

Correct option: D.
main0
main0

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