Routines for obtaining the class names of an object and its parent classes.