| 2 | //Un Barco se caracteriza por: su matrícula, su eslora en metros y año de fabricación. |
| 3 | |
| 4 | abstract class Barco { |
| 5 | |
| 6 | protected String matricula; |
| 7 | protected double eslora; |
| 8 | protected int anio; |
| 9 | |
| 10 | public Barco() { |
| 11 | } |
| 12 | |
| 13 | public Barco(String matricula, double eslora, int anio) { |
| 14 | this.matricula = matricula; |
| 15 | this.eslora = eslora; |
| 16 | this.anio = anio; |
| 17 | } |
| 18 | |
| 19 | public String getMatricula() { |
| 20 | return matricula; |
| 21 | } |
| 22 | |
| 23 | public void setMatricula(String matricula) { |
| 24 | this.matricula = matricula; |
| 25 | } |
| 26 | |
| 27 | public double getEslora() { |
| 28 | return eslora; |
| 29 | } |
| 30 | |
| 31 | public void setEslora(double eslora) { |
| 32 | this.eslora = eslora; |
| 33 | } |
| 34 | |
| 35 | public int getAnio() { |
| 36 | return anio; |
| 37 | } |
| 38 | |
| 39 | public void setAnio(int anio) { |
| 40 | this.anio = anio; |
| 41 | } |
| 42 | |
| 43 | } |
nothing calls this directly
no outgoing calls
no test coverage detected