// Created by Frank M. Carrano and Tim Henry. // Copyright (c) 2013 __Pearson Education__. All rights reserved. /** Listing C1-6. @file ToyBox.cpp */ #include "ToyBox.h" template ToyBox::ToyBox() { PlainBox(); boxColor = BLACK; } // end default constructor template ToyBox::ToyBox(const Color& theColor) { PlainBox(); boxColor = theColor; } // end constructor template ToyBox::ToyBox(const ItemType& theItem, const Color& theColor) { PlainBox(); PlainBox::setItem(theItem); boxColor = theColor; } // end constructor template Color ToyBox::getColor() const { return boxColor; } // end getColor