OoP/ Slide 8 a first simple class or object-oriented' solution class Temperature i public double degree Two mem ber variables degree and scale char scale;← a new(user-defined)type, a composite ty pe: Temperature! Remark: structure Temperature i In old C, this can be done using 'structure double degree similar to 'recordin Pascal char scaleOOP / Slide 8 A first simple ‘class’ or ‘object-oriented’ solution class Temperature { public: double degree; char scale; }; a new (user-defined) type, a composite type: Temperature! Two member variables: degree and scale In old C, this can be done using ‘structure’: structure Temperature { double degree; char scale; }; similar to ‘record’ in Pascal Remark: