Write a class Commodity that contains the following attributes and methods:
-A public data member Name of type string that represents the Commodity name.
-A private data member Quantity that represents the quantity of the Commodity.
-A public data member Price that represents the price of 1 unit of the commodity.
-Constructor (__init__) to initialize data members to any given values.
-__str__ method to return a string represent object of type commodity.
-setQuantity method to initialize Quantity data member to any given value greater than 0.
-CalculatePrice method that calculates and returns the price of the Commodity based of the following Formula:
TotalPrice = price * Quantity
-Overload -= operator to subtract specific value from the price of the Commodity object.
-Overload < operator to test if the first object has less Quantity than the second object of type Commodity.
-Overload + operator to add one object of type Commodity to another object.
What I have tried:
I want help writing the code