KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > db4odoc > f1 > refactoring > PilotNew


1 /* Copyright (C) 2004 - 2006 db4objects Inc. http://www.db4o.com */
2
3 package com.db4odoc.f1.refactoring;
4
5 public class PilotNew {
6     private String JavaDoc identity;
7     private int points;
8     
9     public PilotNew(String JavaDoc name, int points) {
10         this.identity=name;
11         this.points = points;
12     }
13
14     public String JavaDoc getIdentity() {
15         return identity;
16     }
17
18     public String JavaDoc toString() {
19         return identity+"/"+points;
20     }
21 }
22
Popular Tags