Luc Gallant
2004-11-01 00:52:12 UTC
I had a question about project 3. My question is: For the LinkedList
class, I understand that we are allowed to use the one in the text book.
This is fine. Now, for the element class, that class has only one Object
in it, which is no sufficient for the coefficient and the order. What I
want to know is, should we just create a double and an integer instead of
the Object, and by that consequence modify the Element class, or should we
create a class like " aTerm " which would be and Object in the Element?
From what I think, we should be just using the Element itself to store the
coefficient and the order, but I don't know if this is acceptable.
Luc
class, I understand that we are allowed to use the one in the text book.
This is fine. Now, for the element class, that class has only one Object
in it, which is no sufficient for the coefficient and the order. What I
want to know is, should we just create a double and an integer instead of
the Object, and by that consequence modify the Element class, or should we
create a class like " aTerm " which would be and Object in the Element?
From what I think, we should be just using the Element itself to store the
coefficient and the order, but I don't know if this is acceptable.
Luc