Implement a printer for ClassPropertyDefinition.