.. (לתיקייה המכילה) | ||
Is it right, that "legal" value in Digit is such that: value < base? | |
Yes |
Where can we find material about "re-defining printString"? | |
Try presentation 3C slide 19 |
Should the method init (in class BigIntArray) add the input reader values to the array (if there are already values in the array)? | |
No. This method should initialize the array. Therfore, existing contents should be discarded |
When computing sum In class Calculator my implementation changes one of the BigInt objects that were passed as input. is it OK? | |
No, this is not OK. Your code should not change the state of an input object. |
How can the BigIntReader class determine the base of the BigInt objects it generates? | |
The BigIntReader class generates only 10 base values. Thus, It does not have to determine the base of the digits - it is always 10. (Obviously, allowing BigIntReader to support other bases is a natrual extension, but we did not want to overcomplicate this assignment) |