Q. Which of the following is the correct way to define a default constructor in C++?
β
Correct Answer: (A)
ClassName() {}
Explanation: A default constructor is a constructor with no parameters. The correct syntax is 'ClassName() {}'.