Rectangle class with no argument constructor
I need to write a rectangle class using a no argument constructor. What I have come up with that doesn't work....I am so lost right now... is:
public class Rectangle {
private int height=10;
private int width=25;
public Rectangle() {
Rectangle rect = new Rectangle();
getHeight(){
return (height);
}
getWidth(){
return (width);
}
}
public void print(){
System.out.println(height+width);
I need to output the width and height as set as w=25 and h=10
thank in advance