Construct an Item class that stores the code and price of an item

Construct an Item class that stores the code and price of an item. This class should create the possibility of creating objects with and without parameters, to return the data of an item and set new values ​​for them. Placement of values ​​can be realized only within the class or by the classes that inherit from it. Use the class with all its functionalities. C++
Can anyone solve it for me?

Firstly, welcome to the forums.

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too.

With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).

It is pretty typical on here for people to share a codepen / repl.it / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.

Please provide some example of what you’ve tried and I’m sure you’ll get more help.

Happy coding :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.