주문 접수 번호 : 202011020003
주문 핸드폰 번호 : 01023450001
주문 집 주소 : 서울시 강남구 역삼동 111-333
주문 날짜 : 20201102
주문 시간 : 130258
주문 가격 : 35000
메뉴 번호 : 0003
package ch04_1;
public class OrderInfo {
	
	private String orderNum;
	private String orderPhoneNum;
	private String orderAddress;
	private String orderDate;
	private String orderTime;
	private String orderPrice;
	private String menuNum;
	
	public OrderInfo() {}
	
	
	
	public OrderInfo(String orderNum, String orderPhoneNum, String orderAddress, String orderDate, String orderTime,
			String orderPrice, String menuNum) {
		this.orderNum = orderNum;
		this.orderPhoneNum = orderPhoneNum;
		this.orderAddress = orderAddress;
		this.orderDate = orderDate;
		this.orderTime = orderTime;
		this.orderPrice = orderPrice;
		this.menuNum = menuNum;
	}
	public String showOrderInfo() {
		return "주문 접수 번호 : " + orderNum + "\n" +
				"주문 핸드폰 번호 : " + orderPhoneNum + "\n" +
				"주문 집 주소 : " + orderAddress + "\n" +
				"주문 날짜 : " + orderDate + "\n" +
				"주문 시간 : " + orderTime + "\n" +
				"주문 가격 : " + orderPrice + "\n" +
				"메뉴 번호 : " + menuNum;
	}
	public String getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	public String getOrderPhoneNum() {
		return orderPhoneNum;
	}
	public void setOrderPhoneNum(String orderPhoneNum) {
		this.orderPhoneNum = orderPhoneNum;
	}
	public String getOrderAddress() {
		return orderAddress;
	}
	public void setOrderAddress(String orderAddress) {
		this.orderAddress = orderAddress;
	}
	public String getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}
	public String getOrderPrice() {
		return orderPrice;
	}
	public void setOrderPrice(String orderPrice) {
		this.orderPrice = orderPrice;
	}
	public String getMenuNum() {
		return menuNum;
	}
	public void setMenuNum(String menuNum) {
		this.menuNum = menuNum;
	}
	
	
}
package ch04_1;
public class OrderMain {
	public static void main(String[] args) {
		
		OrderInfo orderInfo = new OrderInfo();
		
		orderInfo.setOrderNum("202011020003");
		orderInfo.setOrderPhoneNum("01023450001");
		orderInfo.setOrderAddress("서울시 강남구 역삼동 111-333");
		orderInfo.setOrderDate("20201102");
		orderInfo.setOrderTime("130258");
		orderInfo.setOrderPrice("35000");
		orderInfo.setMenuNum("0003");
		
		System.out.println(orderInfo.showOrderInfo());
	}
}
주문 접수 번호 : 202011020003
주문 핸드폰 번호 : 01023450001
주문 집 주소 : 서울시 강남구 역삼동 111-333
주문 날짜 : 20201102
주문 시간 : 130258
주문 가격 : 35000
메뉴 번호 : 0003