Monday, February 9, 2009

/*Programmer:Miexie D. Tulid
*Title:Customer class*/


public class Customer{
private int cid;
private String cname;
private String caddress;
private String cphone;
private String cemail;
private int cshirtno;
private int cshirtquan;

public Customer(int id,String name,String address,String phone,String email,int shirtno,int shirtquan){
cid=id;
cname=name;
caddress=address;
cphone=phone;
cemail=email;
cshirtno=shirtno;
cshirtquan=shirtquan;

}

public String placeorder(){
return String.format("CustomerID:"+cid+"\nCustomer name"+cname+"\nAddress:"+caddress+"\nPhone number:"+cphone+
"\nEmail address:"+cemail+"\nShirt Id:"+cshirtno+"\nQuantity:"+cshirtquan);

}
}

No comments:

Post a Comment