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?
private Category categories = new Category(max)[4];
Does not work.
UPDATE
Do I need to do something like this?
private Category[] categories = new Category[4];
And then initialize each object?