Create two classes The first holds sales transactions. Its private data members include date, amount of sale, and salesperson's ID number. The second class holds salespeople, and its private data members include each salesperson's ID number and name. Each class includes a constructor with which you can set the field values. Create a friend function that is a friend of both classes and displays the date of sale, amount, and salesperson name for each sale. Write a short main() demonstration program to test your classes and friend function.
Please post it in simple .cpp and .h files and not in project files of a specific program (for example Visual Studio Project files).© BrainMass Inc. brainmass.com March 4, 2021, 7:31 pm ad1c9bdddf
The solution assists with creating two classes with C++ programming.