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
feat(ch 7): reorganised
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user