Term - return coefficient public int getExponent return...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// a class representing the non-zero terms of polynomials public class Term { private int coefficient; private int exponent; Term() { coefficient = 0; exponent = 0; } Term (int i, int j) { setCoefficient (i); setExponent (j); } public int getCoefficient()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { return coefficient; } public int getExponent() { return exponent; } public void setCoefficient(int co) { coefficient = co; } public void setExponent(int ex) { exponent = ex; } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online