Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Last active Aug 29, 2015
Embed
What would you like to do?
Classe conta
package classes;
/**
* A classe Conta representa uma conta bancaria simples.
*
* @author Samuel Santos
*
*/
public class Conta {
//Atributos... sao as caracteristica dessa classe
private String titular;
private String agencia;
private int numero;
private double saldo;
/**
* Pegar o titular da Conta
*/
public String getTitular(){
return titular;
}
/**
* Enviar um titular para essa Conta.
*/
public void setTitular(String titular){
this.titular = titular;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment