Methods for class-prototype.