[Cs3] Moving Square Lab Question

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Jul 22 09:28:15 EDT 2014


> Is the objective to actually "move" the square to a different position on
> the screen(i.e. to the right) or is it to resize it?

LegacySquare is supposed to move the figure, while the adapter is just
drawing the square in the corner.

> 
> For example, if the code is:
> 
> SquareAdapter *s  = new SquareAdapter(4);
> s -> draw();
> s -> resize(6);
> s -> draw();
> 
> should the outcome be a 4 x 4 block and then a 6 x 6 block?

yes. 

> 
> Also, is the function size() in SquareAdapter supposed to return the area
> of the square or just the user specified size?
Just linear size.

Thanks,
-- 
Mikhail


More information about the cs3 mailing list