Understand the purpose of the toString() method and how to override it for custom object representation.