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