How to create an inventory system including durability?

Hello, I am trying to think how I would make an inventory system that also includes durability for the items. I thought of using an array for the items but then how would I save a durability variable for the item?

Use deriving of classes :>

class Item 
{
  float durability;
}

class BattleSpoon : Item
{
  void UseItem ()
  {
    durability -= 10;
  }
}

Somewhere else in your project you will most likely have saved a List or Array of all your Items.

public class ItemManager 
{
  // for example generic list (dont forget to import System.Collections.Generic)
  List<Item> allMyItems = new List<Item>();
}