How about teaching them about subclasses.  That would be the "object-oriented" way of solving this problem.  A People class would have details about People.  Then Professor would inherit from People and Student would inherit from People.  Then you have Professor objects which would implement professor-specific behavior and student objects that would implement student specific behavior.  If you didn't subclass, you would always have to check what kind of person you were before doing anything.