Write Java Code For Class Produce That Meets The Listed Requirements
Write Java Code For Class Produce That Meets The Listed Requirements
Answer
public Produce() {
setprodName (null);
setprodPrice(0.0);
setprodInv (0.0);
}
setprodName (prodName);
setprodPrice(prodPrice);
setprodInv (prodInv);
}
// setprodName will have a set the value to prodName.
this.prodName = prodName;
this.prodPrice = prodPrice;
this.prodInv = prodInv;
return prodName;
return prodInv;
/**
* @(#)ProcessProduce.java
*
*
* @Terri Davis
* @version 1.00 2014/05/12
*
* This code will exercise class Produce
*
*/
public class ProcessProduce
{
} // end main