SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package org.me.classes;
  2.  
  3. public class ContaCorrente {
  4.     private String nome, cpf, email, telefone;
  5.     private double saldo;
  6.    
  7.     public ContaCorrente (String nome, String cpf, String email, String telefone, double saldo) {
  8.         this.nome = nome;
  9.         this.cpf = cpf;
  10.         this.email = email;
  11.         this.telefone = telefone;
  12.         this.saldo = saldo;
  13.     }
  14.    
  15.     public String getNome () {
  16.         return this.nome;
  17.     }
  18.    
  19.     public void setNome (String nome) {
  20.         this.nome = nome;
  21.     }
  22.    
  23.     public String getCpf () {
  24.         return this.cpf;
  25.     }
  26.    
  27.     public void setCpf (String cpf) {
  28.         this.cpf = cpf;
  29.     }
  30.    
  31.     public String getEmail () {
  32.         return this.email;
  33.     }
  34.    
  35.     public void setEmail (String email) {
  36.         this.email = email;
  37.     }
  38.    
  39.     public String getTelefone () {
  40.         return this.telefone;
  41.     }
  42.    
  43.     public void setTelefone (String telefone) {
  44.         this.telefone = telefone;
  45.     }
  46.        
  47.     public double getSaldo () {
  48.         return this.saldo;
  49.     }
  50.    
  51.     public void setSaldo (double saldo) {
  52.         this.saldo = saldo;
  53.     }
  54.    
  55.     public void credito (double valor) {
  56.         this.saldo += valor;
  57.         System.out.println("Valor adicionado a conta!");
  58.     }
  59. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top