I. Create the class Item with the following members:
テつテつ1. id, a protected variable of type int
テつテつ2. name, a protected variable of type string
テつテつ3. price, a protected variable of type double
テつテつ4. a public non-default constructor which accepts threeparameters to initialize the variables above
II. Create the class Chair. The class publicly inherits from Itemand has the following members
テつテつ1. numLegs, a private variable of type int
テつテつ2. a non-default constructor to initialize numLegs, id,name, and price
テつテつ3. accessors and mutators for numLegs
テつテつ4. an int conversion constructor to convert from an intto a type of class Chair.
テつテつ5. a string conversion operator which returns a stringconsisting of the values of id, name, price, and int with spacesbetween the values
テつテつ6. overloaded output stream operator
テつテつ7. overloaded input stream operator
III. Write test code to create an instance of type Chair and testall members