Question: Write a template class Sales with four data members, id, product name, price and number of items representing the details of a sale. Include public
Write a template class Sales with four data members, id, product name, price and number of items representing the details of a sale. Include public methods to display, setters, getters and a method calculate_bill to calculate the total price for all items. Also write a main function that creates a Sales object and calls the public methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
