Checkpoint 11.8.1.
Which statement is false about constructors?
- When we initialize a new object, the compiler automatically finds the correct constructor to use.
- Incorrect! This statement is true!
- You can always initialize an object using squiggly-braces.
- Correct! Once you define a constructor, you can no longer use squiggly-braces to initialize an object.
- You can have many constructors with the same name.
- Incorrect! This statement is true, as long as the constructors take different parameters.
- Once you define a constructor for a structure, you MUST use it to initialize any new structures of that type.
- Incorrect! This statement is true!