Skip to content

Instantly share code, notes, and snippets.

@5AbhishekSaxena
Created December 2, 2022 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5AbhishekSaxena/39d512b67204b98e8c8f08b917447b85 to your computer and use it in GitHub Desktop.
Save 5AbhishekSaxena/39d512b67204b98e8c8f08b917447b85 to your computer and use it in GitHub Desktop.
public class Rectangle {
private int height;
private int width;
public void setHeight(int height) {
this.height = height;
}
public void setWidth(int width) {
this.width = width;
}
public int area() {
return height * width;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment