Q. Which of the following is the correct syntax for a constructor in C++?
β
Correct Answer: (B)
Constructor() {}
Explanation: A constructor in C++ has the same name as the class and no return type.