title: How to define an assignment operator outside my header file in C++?
body: <p>I have a header file which contains a class with an assignment operator. Now I want to define my function inside my .cpp file.</p>
  
  <p>My header file contains: <code>Car &amp;operator=(const Car &amp;other);</code>
  Now in my cpp file I would like to do something like: <code>Car::Car &amp;operator=(const Car &amp;other)
  {
  }</code></p>
  
  <p>Unfortunately this doesn't seem to be the right syntax. So how can I define my assignment operator when I have the function declaration and the function definition separated?</p>