@Override
    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof Trapezium)) {
            return false;
        }
        Trapezium other = (Trapezium)obj;
        return (this.getMinorBase() == other.getMinorBase() && this.getHeight() == other.getHeight() && this.getMajorBase() == other.getMajorBase());
    }