Question: help with C++ please: Create a class named Product. The class declaration should go to a file named Product.h while the definitions should go to
Create a class named Product. The class declaration should go to a file named Product.h while the definitions should go to a file named Product.cpp.
You should be able to compile your class without linking using:
g++ -c Product.cpp
A product should have price and name (private member variables). In addition to getters/setters, the product should be able to apply a discount (public member functions).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
