title: Why I am able to override Equals method if my class doesn't inherit from anything?
body: <p>I got bit confused how the following code works </p>
  
  <pre><code>public class DefaultClass
  {
      public override bool Equals(object obj)
      {
          return base.Equals(obj);
      }
  }
  </code></pre>
  
  <p>My question is: I am not inheriting any class but how am I still able to override Equals method. This code gets compiled perfectly in VS2010. Any idea how this works?</p>