In my program I am modifying my customer class ... the question goes as follows.
suppose that the customer class is going to be expanded to keep track of total year-to-date purchases.
- declare data fields, accessors and mutators which will keep track of the total number of sales and total sales for each instance of customer.
would the data fields be functions? and should the data fields, accessors, and mutators be all defined in like a definition statement. I really want to make sure I'm on the right track with this assignment. Can you explain what i should do and give a program example... that would really help me.. my code thus far is below...
****
#include <cstdlib>
#include <iostream>
class Customer
{
public:
Customer( string name, string address, string city, string state,
string zipcode);