Tuesday, 23 December 2014

PROGRAM IN C-SHARP FOR BANK TRANSACTION SYSTEM-INHERITANCE IN C-SHARP

PROGRAM IN C-SHARP FOR BANK TRANSACTION SYSTEM BY USING INHERITANCE

using System;


class ATM
{
    public void MACHINE()
    {
        Console.WriteLine("INSERT CARD");
    }

    class user
    {
        public void ALI()
        {
            Console.WriteLine("i am a user");
        }

        class bank
        {
            public void HABIB()
            {
                Console.WriteLine("bank");
            }


        }

        class USER : ATM
        {
            class BANK : ATM
            {
                class ATM : BANK
                {
                  
                        public static void Main()
                        {

                            USER obj = new USER();
                            obj.MACHINE();
                      
              

                            BANK clr = new BANK();
                            obj.MACHINE();
              
          
                            USER vlr = new USER();
                         
                        








                        }
                    }
                }
            }
        }
    }

0 comments:

Post a Comment