Question: what is the difference between constructor and operator?
Answer: Copy constructor vs assignment operator in C++ The main difference between them is that the copy constructor creates a separate memory block for the new object. But the assignment operator does not make new memory space. It uses the reference variable to point to the previous memory block.