You could make a method in your parameters class called getCalculator, which simply returns the calculator -
public Calculator getCalculator()
{
return calc;
}
Then create an instance of parameters in intake and call the getCalculator method upon it.
Parameters pram = new Parameters();
Calculators calc2 = new Calculators();
calc2 = pram.getCalculator();
Hopefully that will help.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Offline 89 posts
since Nov 2004