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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!