MCQ
Which of the following initializes the attributes of a newly created object using default values based on their data types ?
  • A
    Instance
  • B
    Static
  • C
    Non-static
  • Constructor

Answer

Correct option: D.
Constructor
D

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