01: package bank;
02:
03: import java.io.Serializable;
04:
05: /**
06: * @author S.Chassande-Barrioz
07: */
08: public class ClientId implements Serializable {
09: public String lastName;
10: public String firstName;
11: public String address;
12:
13: public ClientId() {
14: }
15:
16: public ClientId(Client c) {
17: this .lastName = c.lastName;
18: this .firstName = c.firstName;
19: this .address = c.address;
20: }
21:
22: public ClientId(String lastName, String firstName, String address) {
23: this .lastName = lastName;
24: this .firstName = firstName;
25: this .address = address;
26: }
27:
28: public String toString() {
29: return "(" + firstName + ", " + lastName + ", " + address + ")";
30: }
31: }
|