There are two ways for testing the equality of class instances: reference equality and value equality. In this post we will discuss both of them.