1 37 38 package com.sun.j2ee.blueprints.customer; 39 40 45 public class Account implements java.io.Serializable { 46 47 protected String userId; 48 protected ContactInformation info; 49 50 public Account () {} 51 52 public Account (String userId, ContactInformation info) { 53 this.userId = userId; 54 this.info = info; 55 } 56 57 public String getUserId() { 58 return userId; 59 } 60 61 public ContactInformation getContactInformation() { 62 return info; 63 } 64 65 public String toString() { 66 String ret = null; 67 ret = "userId = " + userId + "\n"; 68 ret += "contact info = " + info.toString() + "\n"; 69 return ret; 70 } 71 72 } 73 | Popular Tags |