Inventory System Question

Hey Guys! I just have a quick question. Im working on making an inventory system for my game. My question is how do i make so the inventory just reads the players item array and displays the item? Is the parent class the players profile and the child class the array? Im slighty confused and was hoping someone might no something I don’t.