Created
March 9, 2018 23:51
-
-
Save GreyHat147/7e53b6a1b5dffd662c745759c7121749 to your computer and use it in GitHub Desktop.
figuras
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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