1.can I have java code for class (a)BillOfSales with fields Customer customer an
ID: 3527955 • Letter: 1
Question
1.can I have java code for class (a)BillOfSales with fields Customer customer and ArrayListitems and methods: .public BillOfSales(Customer c) .public void add(String productDescription,double productPrice,int int productQuantity) .public double calcAmountDue( ) .public String toString( ) (b) Class Customer with fields String name,street,city,state,zipcode and methods: .Customer(String name,String street,String city,String state,String zipcode) .public String toString ( ) c)Class Item with fields Product product and int quantity and methods: .public item(Product product, item quantity) .double calcTotalPrice( ) .public String toString ( ) (d)Class Product with fields String description and double price and methods: .public Product(String description,double price) .String getDescription ( ) .double getPrice( ) Hook up the classes together and format the output.Explanation / Answer
http://www.google.co.in/url?sa=t&rct=j&q=Inheritance+in+Java&source=web&cd=2&cad=rja&ved=0CDgQFjAB&url=http%3A%2F%2Fdocs.oracle.com%2Fjavase%2Ftutorial%2Fjava%2FIandI%2Fsubclasses.html&ei=24wHUdKqBY2Nrgfy-ICgBg&usg=AFQjCNFCzJmTLObJT7jq8zkpxjBH4cryYQ&bvm=bv.41524429,d.bmk
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.