[Cs3] Lab 9 Pointer Question
Mikhail Nesterenko
mikhail at cs.kent.edu
Tue Apr 5 11:59:31 EDT 2016
>
> Do we need a legacyRectangle pointer created for Lab9 inside the
> SquareAdapter class in order to call the legacyRectandle methods
> like move()?
>
That depends on whether you are implementing class Adapter (no need
for delegation, dependencies are handled by multiple inheritance) or
object Adapter (need a pointer to implement delegation). You are free
to use either iplementation.
thanks,
--
Mikhail
More information about the cs3
mailing list