Which of the following is the correct syntax to declare a constructor?

Explanation:

Constructors have the same name as the class and no return type.

Explore more in Computer Science: