// class definition class Temperature { ... } // extension of Temperature class extension Temperature { // add new methods }