Answer:
The answer for the following question is given as:
public static Temperature create(Sensor ob)
{
return new Temperature(ob.getReading());
}
Explanation:
In this we have create a static method of Temperature class which accept a 'Sensor' object and return the new 'Temperature' object that calls the 'getReading()' function This function returns the sensor's current reading.