Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package aula05;
- public class Aula05 {
- public static void main(String[] args) {
- ContaBanco p1 = new ContaBanco();
- p1.setNumConta(1024);
- p1.setDono("William Ribeiro");
- p1.abrirConta("CC");
- p1.estadoAtual();
- p1.depositar(200);
- ContaBanco p2 = new ContaBanco();
- p2.setNumConta(2048);
- p2.setDono("Tia Chica");
- p2.abrirConta("CP");
- p2.estadoAtual();
- p2.depositar(200);
- p2.sacar(50);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement