Lab 10 - Introduction to Classes

The purpose of this lab is to learn how to create a basic class object with member functions and a default constructor.

Program Requirements: Convert the structure from Lab 9 into a class. Your class will have the same member variables as the structure for Lab 9, but these variables will now be in the private section of the class. You will have the following three functions in the public section of the class:

The main() function should be the following (copy and paste into your code). This assumes the class is called ProductObject. Update with the class tag that you used for your class.
int main()
{
  ProductObject p1, p2;

  cout << "Enter the information for product 2...\n";
  p2.getProduct();

  cout << "\nProduct 1 (default values) information is:\n";
  p1.printProduct();

  cout << "\nProduct 2 (user-supplied values) information is:\n";
  p2.printProduct();

  return 0;
}
When the program is run, it should resemble the following (the user input is in blue font face):
Enter the information for product 2....
Enter product name: red ball
Enter product description: A small red spherical toy.
Enter UPC code: 12497438956
Enter quantity in stock: 15

Product 1 (default values) information is:
Name:               UPC:                Stock: 0
Description: 

Product 2 (user-supplied values) information is:
Name: red ball      UPC: 12497438956    Stock: 15
Description: A small red spherical toy.
Name your code lab10.cpp and email your completed code to me.