For a pointer pBox, of type pointer to Box, you could write the downcast shown in Figure 16-7 as Carton* pCarton = dynamic_cast<Carton">(pBox); As you can ...
確定! 回上一頁