rm protected

This commit is contained in:
Orange 2016-11-21 13:17:44 +01:00
parent 6233b5086a
commit 77aeeeb8fa
1 changed files with 8 additions and 6 deletions

View File

@ -40,7 +40,8 @@ public abstract class Dipendente{
}
public abstract void print(PrintStream ps);
/*
/* Non può essere utilizzata perché la classe è definita abstract
public static Dipendente read(Scanner sc) throws Exception{
String codiceFiscale, nome, cnome;
double paga;
@ -55,12 +56,13 @@ public abstract class Dipendente{
paga=sc.nextDouble();
return new Dipendente(codiceFiscale, nome, cnome, paga);
}*/
}
*/
protected String codiceFiscale;
protected String nome;
protected String cnome;
protected double paga;
private String codiceFiscale;
private String nome;
private String cnome;
private double paga;
}