Multiple choice

If a class declares a constructor taking one or more parameters but does not declare a default constructor, then

  1. every class object definition must provide the required arguments

  2. it is a compilation error

  3. it is a runtime error

  4. the compiler automatically inserts the default constructor

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The programmer has to follow the constructor signature.