Java program: Define a class named MultiItemSale that represents a sale of multiple items oftype Sale given in Display 8.1 (or of the types of any of its descendent classes).The class MultiItemSale...

Java program: Define a class named MultiItemSale that represents a sale of multiple items of type Sale given in Display 8.1 (or of the types of any of its descendent classes). The class MultiItemSale will have an instance variable whose type is Sale[], which will be used as a partially filled array. There will also be another instance variable of type int that keeps track of how much of this array is currently used. The exact details on methods and other instance variables, if any, are up to you. Use this class in a program that obtains information for items of type Sale and of type DiscountSale (Display 8.2) and that computes the total bill for the list of items sold.

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here