Visit www.myprogramminglab.com to complete select exercises online and get instant feedback.
Exercise
Define a class named MultiltemSale that represents a sale of multiple items of type Sale given in Display 1 (or of the types of any of its descendent classes). The class MultiltemSale 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 2) and that computes the total bill for the list of items sold.
Display 1
The Base Class Sale



Display 2
The Derived Class DiscountSale


We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.