Question: what is difference between class and constructor?
Answer: Constructor : A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator. ... Class: class is a templates that are used to create objects, and to define object data types and methods.