ClientInfo.java (558B)
1 public class ClientInfo { 2 public String FullName; 3 4 public String Phone; 5 6 public String BirthDate; 7 8 public String CreditCard; 9 10 public String Address; 11 12 public ClientInfo(String name, String tel, String BD, String CC, String adr) { 13 FullName = name; 14 Phone = tel; 15 BirthDate = BD; 16 CreditCard = CC; 17 Address = adr; 18 } 19 20 public String toString() 21 { 22 return "Name : " + FullName + "\n" 23 + "Phone : " + Phone + "\n" 24 + "Birth day : " + BirthDate + "\n" 25 + "Credit card : " + CreditCard + "\n" 26 + "Address : " + Address + "\n"; 27 } 28 }