C++20 sections · 1024 units
Open in Course

Quiz: Constructors

Knowledge check

Check Your Understanding

What happens if you define a parameterized constructor but no default constructor?

  1. A.You cannot create objects without arguments
  2. B.Objects created without arguments use garbage values
  3. C.The compiler generates a default constructor automatically
  4. D.The parameterized constructor runs with null arguments
Start the roadmap to answer the quizzes and solve the challenges