tf_fundamentos/Pessoa.java
caioperschespindola a77e1a1816 Fixed Pessoa.nome
2026-06-11 19:06:23 -03:00

24 lines
No EOL
480 B
Java

public class Pessoa{
private String nome;
private int idade;
private String localNascimento;
public Pessoa(String nome, int idade, String localNascimento){
this.nome = nome;
this.idade = idade;
this.localNascimento = localNascimento;
}
public String getNome(){
return this.nome;
}
public int getIdade(){
return this.idade;
}
public String getLocal(){
return this.localNascimento;
}
}