Skip to content

Commit f933c99

Browse files
feat(practicaLineUp): 'Banda' class was modified
'toString' method was overrided
1 parent b631935 commit f933c99

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

practicaLineUp/src/Banda.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,12 @@ public ArrayList<Artista> getIntegrantesBanda() {
2929
public void setIntegrantesBanda(ArrayList<Artista> integrantesBanda) {
3030
this.integrantesBanda = integrantesBanda;
3131
}
32+
33+
@Override
34+
public String toString() {
35+
return "Banda{" +
36+
"nombreBanda='" + nombreBanda + '\'' +
37+
", integrantesBanda=" + integrantesBanda +
38+
'}';
39+
}
3240
}

practicaLineUp/src/Prueba.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public static void main(String[] args) {
7878
layout.darFormato(banda3);
7979

8080

81+
8182
}
8283

8384
}

0 commit comments

Comments
 (0)