Classe conta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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