Constructor overloading in Java is based on parameter list (type, number, and order) - not on parameter names or intended purpose. public DigitalVideoDisc(String ...
System.out.println("the area of square "+ Math.pow(x, 2)+" sq units"); ...