I'm still missing something here. If the code calls StockItem::Reorder(os), how does UndatedStockItem::Reorder get called? Wouldn't you have to explicitly call the undated version?(posted 7200 days ago)
Or does calling a function of any base class from the same function in a derived class only move you up one leg in the hierarchy? Like a ladder, you have to go one rung at a time? I just don't get it, the code SAYS StockItem, I would think that class would have to be called. Shouldn't one simply call the Undated version directly?
[ Previous | Next ]