I want to create a class that creates arrays and can implement functions on them. This class will support creating an array of another class.
What I have implemented to do this is several overloaded constructors:
public BArray(String type, int rows, int columns)
{
String array[][] = new String[rows][columns];
}
public BArray(int type, int rows, int columns)
{
int array[][] = new int[rows][columns];
}
public BArray(double type, int rows, int columns)
{
double array[][] = new double[rows][columns];
}
public BArray (Class Student, int rows, int columns)
{
Class array[][] = new Class[rows][columns];
}
How would I create an instance of this class with an array of classes (class Student)? I have tried
BArray students = new BArray(Student, 1, lines);
but that gives me an error, can not find symbol, on the word Student.