6. Add three (3) more classes named Parallelogram, Rhombus, and Trapezoid. a. Parallelogram shall inherit from Quadrilateral and shall be the new parent class of Rectangle. Its println() statement...


Use Java Language


6. Add three (3) more classes named Parallelogram, Rhombus, and Trapezoid.<br>a. Parallelogram shall inherit from Quadrilateral and shall be the new parent class of<br>Rectangle. Its println() statement shall be

Extracted text: 6. Add three (3) more classes named Parallelogram, Rhombus, and Trapezoid. a. Parallelogram shall inherit from Quadrilateral and shall be the new parent class of Rectangle. Its println() statement shall be "- has 2 pairs of parallel sides". b. Rhombus shall inherit from Parallelogram. Its println() statement shall be "- has 4 congruent sides". c. Trapezoid shall inherit from Quadrilateral. Its println() statement shall be "- has 1 pair of parallel sides". 7. Modify the main method of the RunQuad class. The choices will now be R, S, P, H, and T. Display appropriate description(s). Sample Output: Select from the following: R - Rectangle Square Parallelogram H - Rhombus T - Trapezoid H A rhombus: - has 4 congruent sides has 2 pairs of parallel sides is quadrilateral

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here