Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GreyHat147/7e53b6a1b5dffd662c745759c7121749 to your computer and use it in GitHub Desktop.
Save GreyHat147/7e53b6a1b5dffd662c745759c7121749 to your computer and use it in GitHub Desktop.
figuras
package example2;
public class Figuras {
private int area;
private static String tipo;
public Figuras(int area, String tipo) {
this.area = area;
this.tipo = tipo;
}
public int getArea() {
return area;
}
public void setArea(int area) {
this.area = area;
}
public static String getTipo() {
return tipo;
}
public static void setTipo(String tipo) {
Figuras.tipo = tipo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment