public class Shape { private double width = 100; private double height = 500; public Shape(int w, int h) { this.width = 5; this.setHeight(2); } public Shape(double w, double h) { width = w; height = h; } public void setWidth(double width){ this.width = width; } public double getWidth(){ return width; } public double getHeight() { return height; } public void setHeight(double height) { this.height = height;} }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)