please i have questine / assignment

Write a java program that has a class called Inventory, define the following for the class

Attributes :

  1. productName

  2. Price

  3. A Constructor used to set values

  4. Set, Get for each attributes

  5. Display message print values

Define another class named Test, in the main method use:

  1. Scanner to input values

  2. Create an object using constructor

  3. Use set and get methods

  4. Call display message method