MCQ
Which of the following is mainly designed to perform initializing actions?
  • A
    main 0
  • constructor
  • C
    getter 0
  • D
    setter 0

Answer

Correct option: B.
constructor
constructor

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