-
DataBaseReader class diagram lists two constructors.
-
Without the parameter list, there is no way to know which constructor is which:
public class DataBaseReader {
String dbName;
int startPosition;
// initialize just the name
public DataBaseReader (String name){
dbName = name;
startPosition = 0;
}
// initialize the name and the position
public DataBaseReader (String name, int pos){
dbName = name;
startPosition = pos;
}
.. // rest of class
}
|
|