I am trying to create a text adventure in java. This is my first large program so, i may be going about it the wrong way. I planed to create a super class for generic items that parents sub classes for different types of items like health items and equipable items.
I have a basic class called item that has id, name, description, and weight variables. I have sub classes that add other attributes. do i need to include the super class's variables in the parameter for the subclass constructor? if not how would i set the super class's variables when I instantiate the subclass?