//***************************************************************** // StudenteDott.java // Rappresenta uno studente dottorando, e la borsa. //***************************************************************** class StudenteDott extends Studente { private String fondi; private double ammontare; //--------------------------------------------------------------- // Crea uno studente di dottorato con le informazioni specifiche. //--------------------------------------------------------------- public StudenteDott (String nome, int numEsami, String fondi, double amm) { super (nome, numEsami); this.fondi = fondi; this.ammontare = amm; } //--------------------------------------------------------------- // Riporta la descrizione dello studente di dottorato. //--------------------------------------------------------------- public String toString () { String riporta = super.toString(); riporta += "\nFondi: " + fondi + "\n"; riporta += "Contributo: " + ammontare; return riporta; } }