.. (לתיקייה המכילה) | ||
Do we have to use a generation field, as in previous assignment, in order to update the sons of a counter that is being updated? | |
No, there are no such constrains. You can update the sons directly. |
Does the function printChildren() prints the value or nested value of the counter? | |
Nested value. |
In C++, Does setParent() gets a pointer or an object? | |
setParent() should get a pointer. |
In C++, what should be the names of the submitted files? | |
You should submit a .h and a .cpp for each class. The name of each file should match the contained class name. |
I don't know how to translate a number into Roman representation | |
Take a look at the smalltalk collections presentation, there's an algorithm. (Or just google "Roman numbers"...) |
Creating the classes ALPHCounter and AlphCounter requires creating two files with the same name (case insensitive) which is not allowed by Eclipse. | |
That's right. Please create a class named ALPHACounter instead of ALPHCounter. |
What should be printed for a roman or alphabetic counter whose value is 0? | |
You can assume that getValue() is called before the counter's value is printed. |
In Java, do we have to locate the classes under a specific package? | |
Yes, please create a package named nestedCounter. |
Should the function printChildren print the values only as int or should it use the "toString" function? | |
printSons should print the value returned from toString(). |
Can we use STL? | |
Yes. |