title: Why do we need exactly the copy constructor and assignment operator in c++
body: <p>Both the copy constructors and assignment operators copies from one object to another then why do we need both?
  Copyconstructor means it creates a new object and copies the contents from another exist object and assignment operator copies the contents from one existing object to the already existing object.</p>
  
  <p>So ultimately both are copying the contents from one object to another then why we need both we can have only one right.</p>