Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Define two derived classes of the abstract class ShapeBase in listing 8.19. Your

ID: 3552356 • Letter: D

Question


Define two derived classes of the abstract class ShapeBase in listing 8.19. Your two classes will be called RightArrow and LeftArrow. These classes will be like the classes Rectangle and Triangle, but they will draw arrows that point right and left, respectively. For example, the following arrow points to the right: The size of the arrow is determined by two numbers, one for the length of the "tail" and one for the width of the arrowhead. (The width is the length of the vertical base.) The arrow shown here has a length of 16 and a width of 7. The width of the arrowhead cannot be an even number, so your

Explanation / Answer

https://copy.com/AwJC3DEJaP71rERR