Illustrating how one might implement (override) equals, hashCode and toString methods for a class and its subclass.