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