Sicuramente se vuoi un sottoclasse è meglio che non la chiami Entry come la super classe.
Un secondo consiglio, se te lo posso dare, e non usare i tipi specializzati a sinistra degli assegnamenti (ArrayList,LinkedList -> List).
Detto questo:
codice:public class EntryWithPartecipanti extends Entry { private ArrayList<String> partecipanti; public EntryWithPartecipanti (int g, int o, String n, ArrayList<String> p ){ // costruttore super (g,o,n); parteceticpanti = p; } } //SOLUZIONE SENZA TIPI SPECIALIZZATI public class EntryWithPartecipanti extends Entry { private List<String> partecipanti; public EntryWithPartecipanti (int g, int o, String n, List<String> p ){ // costruttore super (g,o,n); parteceticpanti = p; } }

Rispondi quotando
