posted 21 years ago
Below is code for a class Computer. MemoryChip is another class, it works fine. I'm having trouble trying to figure out how to work with the arrays of MemoryChip in the constructors and with method addAChip(). I don't like writing duplicate code, but maybe I'll have to in spots. Will the constructor have to call addAChip() twice, and addAChip() have to call setRam()? That doesn't seem right.
Thanks for any help.