MCQ
Which of the following initializes the attributes of newly created object using default values based on their data types?
  • Default constructor
  • B
    Varies constructor
  • C
    Constant constructor
  • D
    None of these

Answer

Correct option: A.
Default constructor
Default 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