Attachment 'Musicista.java'

Download

   1 public class Musicista {
   2 
   3 	private String nome;
   4 	private String cognome;
   5 	private String strumentoSuonato;
   6 	
   7 	public Musicista(String n, String c, String s)
   8 	{
   9 		nome=n;
  10 		cognome=c;
  11 		strumentoSuonato=s;
  12 	}
  13 	
  14 	public void setNome(String n)
  15 	{
  16 		nome=n;
  17 	}
  18 	
  19 	public String getNome()
  20 	{
  21 		return nome;
  22 	}
  23 	
  24 	public void setCognome(String n)
  25 	{
  26 		cognome=n;
  27 	}
  28 	
  29 	public String getCognome()
  30 	{
  31 		return cognome;
  32 	}
  33 	
  34 	public void setStrumentoSuonato(String n)
  35 	{
  36 		strumentoSuonato=n;
  37 	}
  38 	
  39 	public String getStrumentoSuonato()
  40 	{
  41 		return strumentoSuonato;
  42 	}
  43 	
  44 	
  45 }

Attached Files

You are not allowed to attach a file to this page.