Exemplo n.º 1
0
        static void Main(string[] args)
        {
            account a  = new account(1, "Vaibhav", 2000);
            account a1 = new account(2, "ajay", 3000);

            a.deposit(100);
            a.withdraw(200);
            a.display();
            a1.deposit(1000);
            a1.withdraw(2000);
            a1.display();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            account a = new account(1, "abhijeet", 100000);

            a.disp();
            a.deposit(20000);
            a.disp();
            a.withdraw(15000);
            a.disp();
            account b = new account(2, "omkar", 200000);

            b.disp();
            b.deposit(20000);
            b.disp();
            b.withdraw(15000);
            b.disp();
        }