in c++Toy ClassConsider the definition of class Toy below, representing a type of toy that is being sold at the toy store. The comments in the code define the purpose of each variable, constant and method (it is also found in Toy.h).class Toy {private: std::string name; // the toy name, e.g. firetruck int numInStock; // how many of this toy is in stock static const int MAX_IN_STOCK = 20; // maximum number of a toy that can be kept in stockpublic: // Accessors std::string GetName() { return name; } int GetNumInStock() { return numInStock; }};Do not create any new member variables. You will need to create the following 4 member functions---also know as methods---all of which must be public.Constructor1) The constructor, which takes a string and an integer parameter---in that order. The string is the Toy name, and the integer represents how many of this Toy you would like to stock. The constructor should check that:the value of the string parameter is longer than zero. If it is not, set name to "unknown."that the int parameter matches the same constrains as defined in the SetNumInStock method.Note: you must create the above constructor with parameter types exactly as specified above. Otherwise, all the unit tests will fail.SetNumInStock method