Exercise

  1. Implement the HomeItemComputer class as a derived class of HomeItemBasic to keep track of computers. The added fields should include serial number, amount of RAM, amount of disk space, a list of installed storage devices, and lists of installed ISA and PCI interface cards.

  2. Implement the HomeItemSoftware class as a derived class of HomeItemBasic to keep track of computer software. The added fields should include the serial numbers of the software and computer on which it is installed. Can you devise a way to make sure that the latter serial number is the same as the serial number of a HomeItemComputer in the inventory?

  3. Implement the HomeItemAppliance class as a derived class of HomeItemBasic to keep track of other electric and electronic ...

Get Learning to Program in C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.