Q:

Using the version of Sales_data from this section, determine which constructor is used to initialize each of the following variables and list the values of the data members in each object

0

Using the version of Sales_data from this section, determine which constructor is used to initialize each of the following variables and list the values of the data members in each object:

Sales_data first_item(cin);
int main() {
 Sales_data next; Sales_data last("9-999-99999-9");
}

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The constructors used are list in comment.

 Sales_data first_item(cin);  // Sales_data(std::istream &is);
    int main() {
      Sales_data next;  // Sales_data(std::string s = "");
      Sales_data last("9-999-99999-9");  // Sales_data(std::string s = "");
    }

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now