Example #1
0
        public void PrintID()
        {
            CoorporateCustomer CC = new CoorporateCustomer();


            CC._id   = 101;
            base._id = 101;
            this._id = 101;


            Console.WriteLine(CC._id);
        }
Example #2
0
        // PRIVATE, PROTECTED, INTERNAL, PROTECTED INTERNAL, PUBLIC
        static void Main(string[] args)
        {
            //Private and protected
            Customer c1 = new Customer();

            c1.ID = 15;
            Console.WriteLine(c1.ID);

            CoorporateCustomer cc = new CoorporateCustomer();

            cc.PrintID();
            //End private and protected
        }