Posted by William D McQuain on November 26, 2001 at 09:11:32:
In Reply to: Hierarchy posted by Eric on November 21, 2001 at 15:43:05:
: Since the spec says that the tow trucks differ in how they deal with the cars they tow, does that mean only their member functions should be different but they should not have data members added to the base class?
No. Certainly there will be differences in the member functions. There may also be differences in the data members. That's a design issue and the spec does not mandate an answer. (That's not to say that all decisions are equally good.)
Post a Followup