-
Notifications
You must be signed in to change notification settings - Fork 8
añado Multimedia (abstracta) y Persona #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 { | ||
|
|
||
| } |
| 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{ | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ public class Contenido { | |
|
|
||
| private String id; | ||
| private String titulo; | ||
| private String calidadString; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ¿Crees que la calidad va asociada al |
||
|
|
||
| public Contenido() { | ||
| } | ||
|
|
@@ -12,5 +13,5 @@ public Contenido(String id, String titulo) { | |
| this.id = id; | ||
| this.titulo = titulo; | ||
| } | ||
|
|
||
| } | ||
| 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{ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Espacio |
||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| package descargas; | ||
|
|
||
| public abstract class Multimedia extends Contenido { | ||
|
|
||
| String calidadString; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
| } | ||
|
|
||
| } | ||
| 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Estos comentarios se tienen que borrar |
||
| return calidadString; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| 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; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. En verdad aquí deben ser |
||
|
|
||
|
|
||
| public Pelicula(String id, String titulo) { | ||
| super(id, titulo); | ||
| } | ||
|
|
||
|
|
||
| @Override | ||
| public String getCalidadString() { | ||
| // TODO Auto-generated method stub | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem |
||
| return calidadString; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package descargas; | ||
|
|
||
| public class Persona { | ||
|
|
||
| String nombre; | ||
|
|
||
| public Persona() { | ||
| super(); | ||
| } | ||
|
|
||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Te falta un espacio