01: package com.db4o.f1.chapter4;
02:
03: import java.util.*;
04:
05: public class TemperatureSensorReadout extends SensorReadout {
06: private double temperature;
07:
08: public TemperatureSensorReadout(Date time, Car car,
09: String description, double temperature) {
10: super (time, car, description);
11: this .temperature = temperature;
12: }
13:
14: public double getTemperature() {
15: return temperature;
16: }
17:
18: public String toString() {
19: return super .toString() + " temp : " + temperature;
20: }
21: }
|