Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/descargas/Actor.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package descargas;

public class Actor {
String nombre;
public class Actor extends Persona {

}
4 changes: 2 additions & 2 deletions src/descargas/Artista.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package descargas;

public class Artista {
String nombre;
public class Artista extends Persona{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Te falta un espacio


}
3 changes: 2 additions & 1 deletion src/descargas/Contenido.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public class Contenido {

private String id;
private String titulo;
private String calidadString;
Copy link
Contributor

@Awes0meM4n Awes0meM4n Nov 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¿Crees que la calidad va asociada al Contenido o al Fichero?


public Contenido() {
}
Expand All @@ -12,5 +13,5 @@ public Contenido(String id, String titulo) {
this.id = id;
this.titulo = titulo;
}

}
4 changes: 2 additions & 2 deletions src/descargas/Director.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package descargas;

public class Director {
String nombre;
public class Director extends Persona{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Espacio


}
21 changes: 21 additions & 0 deletions src/descargas/Multimedia.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package descargas;

public abstract class Multimedia extends Contenido {

String calidadString;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tienes repetida la variable


public Multimedia() {
super();
}

public Multimedia(String id, String titulo) {
super(id, titulo);
}

public abstract String getCalidadString() ;

public void setCalidadString(String calidadString) {
this.calidadString = calidadString;
}

}
10 changes: 9 additions & 1 deletion src/descargas/Musica.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
package descargas;

public class Musica extends Contenido {
public class Musica extends Multimedia {

Artista artista;

public Musica(String id, String titulo) {
super(id, titulo);
}

@Override
public String getCalidadString() {
// TODO Auto-generated method stub
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Estos comentarios se tienen que borrar

return calidadString;
}

}

12 changes: 10 additions & 2 deletions src/descargas/Pelicula.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
package descargas;

public class Pelicula extends Contenido {
public class Pelicula extends Multimedia {

Director director;
Actor[] actoresPrincipales;
Persona[] actoresPrincipales;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En verdad aquí deben ser Actores, no Personas



public Pelicula(String id, String titulo) {
super(id, titulo);
}


@Override
public String getCalidadString() {
// TODO Auto-generated method stub
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem

return calidadString;
}
}
11 changes: 11 additions & 0 deletions src/descargas/Persona.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package descargas;

public class Persona {

String nombre;

public Persona() {
super();
}

}