const
virtual function: Shape* get_copy (void
)Dynamically allocates a new
Solid
on the free store, usingcreate_new<Solid>()
, and makes it a copy of*this
. Then, a pointer toShape
is pointed at the copy and returned. Used for puttingSolids
ontoPicture::shapes
in the drawing and filling functions forSolid
. See Solid Reference; Drawing and Filling.