I have this class constructor:
public Category(int max){ ... }
The thing is, I want to make an array of this class, how do I initialize it?
When you are making an array , you are creating an array of Category. That s an instance of array.
When you are populating the array with Category objects, at that point you use the Category with Const.
Category [] categories = new Category[4]; categories[0] = new Category(10);