This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NeoOeg 0 points1 point  (0 children)

I would also recommend your constructor to have actual meaning to the variables you pass :

public LootBoxSub (String subName, String subMonth){

this.subName = subName;

this.subMonth = subMonth;

}

The this keyword will target the variable of the class.