Question: C++ Create a class Product . A product should have private member variables for name, price, and quantity, and public functions to get and set
C++ Create a class Product. A product should have private member variables for name, price, and quantity, and public functions to get and set them. A product should also have a function to calculate and return its total cost.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
