Question: C++ programming Using the attached header file , create the companion . cpp file #pragma once #ifndef CRAYONBOX_H #define CRAYONBOX_H #include using namespace std; class

C++ programming

Using the attached header file, create the companion .cpp file

#pragma once #ifndef CRAYONBOX_H #define CRAYONBOX_H #include using namespace std;

class CrayonBox { private: string brand; int numInBox; static int numBoxes; string * colors; // pointer to dynamically allocated array of size numInBox void setColors(string *, int); // sets up array of colors public: CrayonBox(string, int, string *); ~CrayonBox(); static int getNumBoxes() { return numBoxes; } int getNumInBox() { return numInBox; } string getBrand() { return brand; } void setNumInBox(int); void printBox(); // print brand, numInBox, and colors }; #endif

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!