Modifier and Type | Field and Description |
---|---|
private int |
id |
private String |
name |
private BigDecimal |
price |
private Purchase |
purchase |
Modifier | Constructor and Description |
---|---|
protected |
SaleItem() |
|
SaleItem(Purchase purchase) |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
String |
getName() |
double |
getPrice() |
Purchase |
getPurchase() |
void |
setName(String name) |
void |
setPrice(double price) |
void |
setPurchase(Purchase purchase) |
private int id
private Purchase purchase
private String name
private BigDecimal price
protected SaleItem()
public SaleItem(Purchase purchase)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.