Rectangle.java - File Rectangle.java Author DeAnna Crate...

This preview shows page 1 out of 1 page.

/* * File: Rectangle.java * Author: DeAnna Crate * Date: 6/27/2020 * Purpose: grandchild of shape, child of TwoDimensionalShape */ package project1; import java.util.Scanner; public class Rectangle extends TwoDimensionalShape{ double length; double width; Rectangle(int numDimensions, double area, double l, double w){ super(numDimensions, area); l = length; w = width; } void getArea(){ try{ Scanner s = new Scanner(System.in);

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture