Making a slot based inventory system stored within a component?

I was wondering if someone could break down how a slot based inventory system works, currently I got an actor component with a pickup item event, that adds the actor class to an array.
I’ve never used arrays before so I’m not exactly getting anywhere.