write the code and output screendesign a base


Write the code and output screen

Design a base class shape with virtual functions

Void draw(GrapicWindow& win) const;

Void move(double dx, double dy);

The Circle, Line, and Message classes are not derived from the Shape class.

Supply three adapter classes CircleShape, LineShape, and MessageShape.

Supply a test program that populates a vector(Shape*> with adapted objects, and demon-states the draw and move functions.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: write the code and output screendesign a base
Reference No:- TGS0442322

Now Priced at $15 (50% Discount)

Recommended (90%)

Rated (4.3/5)