Jared Malcolm wrote:
Igor Mechnikov wrote:The idea was to implement "initially consists of a single cell. The cell should contain a blank space, and the current cell pointer should point to it."
Then why assign the value of NULL to the char? Why not
While what you are doing will work it is in no way proper.
Thank you very much. I actually looked up the default value for char, did not know I could have used ' '. little light bulb flickers.
As far as encapsulation, I was given Cell and TapeTest classes and had to create Tape.
However, It makes too much sense that methods having to do with Cell ought to be where they belong.
This way Tape methods could go to the currentCell and then implement Cell methods.