I was reading
Object-Oriented Programming in C++ by Robert Lafore and it is mentioned(pg. no. 235)
"If there was no constructor, an implicit no-argument constructor is built into the program automatically by the compiler, and it’s this constructor that created the objects, even though we didn’t define it in the class. This no-argument constructor is called the default constructor. If it weren’t created automatically by the constructor, you wouldn’t be able to create objects of a class for which no constructor was defined."
Does the constructor creates the object?
I understand a constructor can be used to initialize an object. But even if I don't need to initialize objects of the class I'm creating, a default constructor is generated by the compiler. Therefore I suspect there is some other use/need of a constructor. Is there any?