using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace CaixaEletronico2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
private void button1_click(object sender, EventArgs e) { Conta.conta = new Conta(); conta.Deposita(1000.0);
conta.saca(100); conta.saca(200); conta.Titular = new Conta(); conta.Titular.nome = "victor"; MessageBox.Show("O saldo atual é:" + conta.Saldo);
} } }