mirror of
https://gitlab.com/tutorial-java-rafa-munoz/tutorial-java-2024-25/tutorialjava2024-25.git
synced 2025-11-09 18:03:09 +01:00
25 lines
345 B
Java
25 lines
345 B
Java
package tutorialJava.capitulo7_Recursos.ejemplo03_excepciones;
|
|
|
|
public class Pierna {
|
|
|
|
public static int DERECHA = 0;
|
|
public static int IZQUIERDA = 1;
|
|
|
|
protected int tipo;
|
|
|
|
public Pierna(int tipo) {
|
|
super();
|
|
this.tipo = tipo;
|
|
}
|
|
|
|
public int getTipo() {
|
|
return tipo;
|
|
}
|
|
|
|
public void setTipo(int tipo) {
|
|
this.tipo = tipo;
|
|
}
|
|
|
|
|
|
}
|