package dcc024W;

public class Estudante {
	private final String nome; // Notice 'final'
	private int idade;
	private double nota;
	public Estudante(final String nome, final int idade) {
		this.nome = nome; // Notice the key word this.
		this.idade = idade;
		this.nota = 0; // type cast here
	}
	public String toString() {
		return "Estudante: " + nome + ", idade: " + idade + ", nota: " + nota;
	}
	public void incIdade() {
		idade++; // Could also be ++idade
	}
	public void addNota(final double increment) {
		nota += increment; // There are many ways to write this command.
	}
	public double getNota() {
		return nota;
	}
	public String getNome() {
		return nome;
	}
}
