title: delphi object assign vs :=
body: <p>Could someone explain the difference between:</p>
  
  <p>(1.)</p>
  
  <pre><code>newObj := TMyObject.Create;
  newObj.Assign(oldObj);
  </code></pre>
  
  <p>and </p>
  
  <p>(2.)</p>
  
  <pre><code>newObj := oldObj;
  </code></pre>
  
  <p>in 2. does <code>newObj</code> and <code>oldObj</code> refer to the same single object?</p>
  
  <p>Sorry if this has been covered before but is is difficult to search <code>:=</code></p>