Skip to content
Snippets Groups Projects
Commit 4439bb04 authored by carmuno's avatar carmuno :tennis:
Browse files

enunciados

parent 07c0e43d
No related branches found
No related tags found
No related merge requests found
File added
File added
...@@ -2,7 +2,7 @@ package examen2; ...@@ -2,7 +2,7 @@ package examen2;
import java.time.LocalDateTime; import java.time.LocalDateTime;
public class Infantiles extends Billete { public class Infantiles extends Billete implements Persona {
private int edad; private int edad;
private LocalDateTime fechaYhora; private LocalDateTime fechaYhora;
...@@ -47,6 +47,13 @@ public class Infantiles extends Billete { ...@@ -47,6 +47,13 @@ public class Infantiles extends Billete {
return super.getPrecio() * 0.50; return super.getPrecio() * 0.50;
} }
@Override
public void getedad() {
this.edad = edad;
}
} }
package examen2;
public interface Persona {
public void getedad();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment