I have two files, an application file and a class file. While they both run without errors, the application file returns a null when I run it.
Here are the two parts that dont seem to work?
Can someone tell me waht I am doing wrong?
App file code:
Invoice invoice = new Invoice(subtotal, customerType);
System.out.println();
System.out.println(invoice.getInvoice());
Class file code:
// constructors
public Invoice(double subtotal,String customerType)
{ this.subtotal=subtotal; this.customerType=customerType; }
// set and get statements for Invoice
public void setInvoice(double subtotal, String customerType)
{this.subtotal=subtotal; this.customerType=customerType; }
public String getInvoice()
{return Invoice; }