Question: please use C++ programming CrayonBox - brand : string Who makes the crayons - numInBox : int How many crayons in the box - colors

please use C++ programming

CrayonBox

- brand : string Who makes the crayons

- numInBox : int How many crayons in the box

- colors : string * Dynamically allocated array of colors

- numBoxes : int Number of instances of CrayonBox

+ CrayonBox(string, int, string*) Constructor takes Brand and # in box, string array of colors

+ ~CrayonBox()

+ getNumBoxes() Returns number of instances of CrayonBox

+ Getters and Setters Note: the signature to set colors is setColors(string*, int) : void

+ printBox() : void Function to print the brand, # in box and all the colors Given the UML above, create the header file

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!