Representation of single-method classes