Costruttore Persona
This commit is contained in:
@@ -10,4 +10,17 @@ package ereditarieta;
|
|||||||
*/
|
*/
|
||||||
public class Persona {
|
public class Persona {
|
||||||
|
|
||||||
|
String nome;
|
||||||
|
String cognome;
|
||||||
|
String sesso;
|
||||||
|
String età;
|
||||||
|
|
||||||
|
public Persona(String p_nome, String p_cognome, String p_sesso, String p_età) {
|
||||||
|
this.nome = p_nome;
|
||||||
|
this.cognome = p_cognome;
|
||||||
|
this.sesso = p_sesso;
|
||||||
|
this.età = p_età;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user