public class Table {

    private int width, length, height, currentHeight;
    private boolean isAdjustable;

    public Table(int width, int length, int height) {
        this.width = width;
        this.length = length;
        this.height = height;
        this.isAdjustable = false;
        this.currentHeight = height;
    }
    public Table(int width, int length, int height, int currentHeight) {
        this.width = width;
        this.length = length;
        this.height = height;
        this.isAdjustable = true;
        this.currentHeight = currentHeight;
    }
    public int getWidth() { return width; }
    public int getLength() { return length; }
    public int getHeight() { return height; }
    public boolean isAdjustable() { return isAdjustable; }
    public int getCurrentHeight() { return currentHeight; }

    //Először TDD-vel írjuk meg a tesztet, majd bővítsük ezt a függvényt!
	//A függvény tartalma csak referenciaként van itt!
    public void setHeight(int newHeight) {
        /*if (isAdjustable) {
            if (newHeight < 0 || newHeight > 200) {
                throw new IllegalArgumentException("Height is not correct!");
            }
            this.currentHeight = newHeight;
        } else {
            throw new UnsupportedOperationException("Table is not adjustable!");
        }*/
    }
	
	//Először TDD-vel írjuk meg a tesztet, majd bővítsük ezt a függvényt!
	//A függvény tartalma csak referenciaként van itt!
    public int area() {
        //return width * length;
    }
	
	//Először TDD-vel írjuk meg a tesztet, majd bővítsük ezt a függvényt!
	//A függvény tartalma csak referenciaként van itt!
    public int getCapacity() {
        /*int peopleOnLength = length / 60;
        int peopleOnWidth = width / 60;
        return (peopleOnLength * 2) + (peopleOnWidth * 2);*/
    }
}
