Car

Car.java
01/* Copyright (C) 2004 - 2007 db4objects Inc. http://www.db4o.com */ 02package com.db4odoc.android.compare; 03 04 05public class Car { 06 private String model; 07 private Pilot pilot; 08 09 public Car(){ 10 11 } 12 13 public Car(String model) { 14 this.model=model; 15 this.pilot=null; 16 } 17 18 public Pilot getPilot() { 19 return pilot; 20 } 21 22 public void setPilot(Pilot pilot) { 23 this.pilot = pilot; 24 } 25 26 public String getModel() { 27 return model; 28 } 29 30 public String toString() { 31 return model+"["+pilot+"]"; 32 } 33 34 public void setModel(String model) { 35 this.model = model; 36 } 37}