Hello, i have to create a java program that calculates a polynomial, kinda. the key question i have is i dont understand what this is asking me right here, and if i am understanding it right, why is it not working? this is what it is asking me
Create a constructor that takes three parameters of type MyDouble representing coefficients a, b, and c (in that order) for the Polynomial being constructed. The data members a, b, and c are to be initialized with these values resulting in the polynomial: "a*x^2 + b*x + c".
this is what i have understood so far, though it gives me an error
public class Polynomial {
private final MyDouble a;
private final MyDouble b;
private final MyDouble c;
public Polynomial (double tempA, double tempB, double tempC){
}
}
i realize there is nothing inside the constructor, but im not exactly sure what to put inside. and without putting anything inside, i get an error that says "The blank final field c may not have been initialized" Thank You for your help!