static void Main(string[] args)
        {
            //One way of calling abstract methods when only one class needs to called
            //Shape sh = new Circle() ;
            //sh.ShowShape("Circle");

            //Initialize Base Class for list to load
            WageraWagera bs = new WageraWagera();

            bs.CheckConditionAndPassMethod();

            //Create a list and check items there
            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main()
        {
            //Just for Object Initialization
            var AObj = new A();
            var BObj = new B();

            var bs = new WageraWagera(AObj);

            bs.ListAddition(Obj);

            //Refactored method
            bs.ListAddition2();

            //Create a list and check items there
            Console.ReadKey();
        }