How does using generics with a specific type (like <Potion>) affect the Inventory class behavior?
<Potion>
Inventory
It makes the inventory class incompatible with the Item class.
Item
It has no effect; generics are purely syntactical and do not influence runtime behavior.
It allows the inventory to store any type of item without restrictions.
It restricts the inventory to only store potions, providing type safety.