title: How do I compare two instances of a class
body: <p>Let's say I have created a class named Store.
  This class has several elements such as Name, PhoneNumber, Owner.</p>
  
  <p>I've created 2 instances of this class and want to know which values are different.</p>
  
  <p>So lets say that Store1 and Store2 are instances of this class.</p>
  
  <pre><code>Store1.Name = "John's Corner";  
  Store1.PhoneNumber = 111222333;  
  Store1.Owner = "John";  
  
  Store2.Name = "John's Corner";  
  Store2.PhoneNumber = 444555666;  
  Store2.Owner = "John";  
  </code></pre>
  
  <p>Usually to compare one would do:</p>
  
  <pre><code>if (Store1.Name == Store2.Name) output.text += "Store name is different."  
  if (Store1.PhoneNumber == Store2.PhoneNumber) output.text += "Store Phone Number is different."  
  if (Store1.Owner == Store2.Owner) output.text += "Store Owner is different."
  </code></pre>
  
  <p>Is there a way to automatically loop through all elements of a class instance and compare them to the same element in another class instance and return something when they differ?</p>
  
  <p>This might be obvious but I can't figure it out.</p>