I am trying to create a new constructor for the Monomial, but I keep getting the error
"return type is missing for coefficient"
Why is that so because constructors in java has no return type so why is the compiler is asking for a return type?
Additionally, how can I initialise private PolyNode monomilaist insider the constructor since it is private, and not public?
public class Polynomial implements CalculatorOperand<Polynomial> {
private class PolyNode {
int coeff;
int degree;
PolyNode next;
public Monomial(int coeff, int degree)
{
private PolyNode monomialsList;
}