Advertisement
souwill

Untitled

May 4th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package aula05;
  7.  
  8.  public class Aula05 {
  9.    public static void main(String[] args) {
  10.        ContaBanco p1 = new ContaBanco();
  11.        p1.setNumConta(1024);
  12.        p1.setDono("William Ribeiro");
  13.        p1.abrirConta("CC");
  14.        p1.estadoAtual();
  15.        
  16.        p1.depositar(200);
  17.        
  18.        
  19.        ContaBanco p2 = new ContaBanco();
  20.        p2.setNumConta(2048);
  21.        p2.setDono("Tia Chica");
  22.        p2.abrirConta("CP");
  23.        p2.estadoAtual();
  24.        
  25.        p2.depositar(200);
  26.        p2.sacar(50);
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement