C++20 sections · 1024 units
Open in CourseQuiz: Constructors
Knowledge check
Check Your Understanding
What happens if you define a parameterized constructor but no default constructor?
- A.You cannot create objects without arguments
- B.Objects created without arguments use garbage values
- C.The compiler generates a default constructor automatically
- D.The parameterized constructor runs with null arguments