Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            global::Banking.ClsBanking a = new ClsBanking();//global::所以有命名空間最底層
            MessageBox.Show(a.Deposit(1000).ToString());

            ClsSpecialBanking b = new ClsSpecialBanking();

            MessageBox.Show(b.Deposit(1000).ToString());
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            global::Banking.ClsBanking a = new Banking.ClsBanking();
            MessageBox.Show("a balance = " + a.Deposit(1000));


            ClsSpecialBanking b = new ClsSpecialBanking();

            MessageBox.Show("b balance =" + b.Deposit(1000));
        }