/* Caitlin Ross
 * ross0272@algonquinlive.com
 * Student #040750891
 * CST8284 Object Oriented Programming (Java)
 * Section 451
 * Assignment 6
 * Oct 25, 2020
 */
package assignmentSix;

public class Rectangle extends Shape {
    // Data members
    private double width;
    private double length;

    // Constructors
    public Rectangle() {
        // No dimensions specified, set to 0
        super();
        width = 0.0;
        length = 0.0;
    }
    
    public Rectangle(double w, double l) {
        super();
        width = w;
        length = l;
    }

    // Accessors
    @Override
    public double getArea() { return width * length; }
    @Override
    public double getPerimeter() { return (width * 2) + (length * 2); }
}
