Example #1
0
        static void Main(String[] ar)
        {
            Maruti   m  = new Maruti();
            Mahindra mm = new Mahindra();

            m.display();
            mm.display();
        }
Example #2
0
        static void Main(String[] args)
        {
            Maruti   m1 = new Maruti();
            Mahindra m2 = new Mahindra();

            m1.display();
            m2.display();
        }