Hi ya, at the bottom I have listed the criteria. I need to create a basic graphics package. However I need advice on the most effective and efficient simple way of doing this?
I am very keen to start off with a switch statement, is this the right thing to do for this occassion? Please take a look at my code and help me come up with a working model. The
coffee is brewing guys I got the notes and the books out but I'm kinda stumped. By the way I am only a student so please constuctive critism if any.
My first question is what should the next step be and what layout should work?
Rob
===============================================================
Hello I have been given this task to do:
Develop a basic graphics package.
Use the Shape class inheritance hierarchy shown below.
a. Limit yourself to two dimensional shapes such as squares, rectangles, triangles and circles.
b. Interaction with the user must be demonstrated.
c. Let the user specify the position, size and shape to be used in drawing each shape.
d. The user can specify many items of the same shape.
e. As you create each shape, place a Shape reference to each new shape object into an array.
f. Each class has its own draw method. Write a polymorphic screen manager that walks through the array sending draw messages to each object in the array to form a screen image.
g. Redraw the screen image each time the user specifies an additional shape. Investigate the methods of class Graphics to help draw each shape.
Shape
/ \
TwoDimensionalShape ThreeDimensionalShape
/ | \ / | \
Circle Square Triangle Sphere Cube Tetrahedron
====================================================================
[ January 03, 2004: Message edited by: Michael Ernest ]
[ January 03, 2004: Message edited by: Tony Alicea ]