Posted by D. Barnette on December 05, 2001 at 17:41:28:
In Reply to: why not car id truck id posted by Geir Wiksen on December 05, 2001 at 14:37:50:
A top level vehicle abstract base class is certainly an acceptable design, but so is not having one for this program. Since trucks and cars do not need to be stored in the same container in this program deriving them from a cmmon base class doesn't really buy you much.
The IDs are only related in that they are IDs, (Lisc vs. truck ID) you could treat them the same for functionality purposes in a base class.
Post a Followup