Consider a software application for managing a university's academic departments. You have two classes, Department and Professor. Which of the following statements accurately represents the "is a" and "has a" relationships between these classes?
This method is responsible for converting an object's contents into a more or less readable string. You can redefine it if you want your object to be able to present itself in a more elegant form.