I got bit confused how the following code works
public class DefaultClass
public override bool Equals(object obj)
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?