public class Square { private int height; public Square() { height = 0; } public Square(int h) { height = h; } public void setDimensions(int h) { height = h; } public int getArea() { return height * height; } public void writeOutput() { System.out.println("Height = " + height); System.out.println("Area = " + getArea()); } public static void main(String[] args) { // Q1: Declare an object of Sqaure s1? Square s1 = new Square(); // Q2: change the height of s1 to 2? s1.setDimensions(2); // Q3: output the area of s1? System.out.println("Area: " + s1.getArea()); System.out.println("\n\nDone.\n\n"); } }