5:32 At line 5,Animal an = new Dog( ); and Dog an = new Dog ( ); gives the same output(walk-four).So,we can also achieve overriding by using the Dog class. Then why you are using Animal class instead of Dog class. Please explain me sir 🙏
You are creating obj for a child class which is already have (walk-four) ,method overriding is the concept which is dog class can specify its own implementation through animal class Animal(parentclass) an=new dog();
5:32 At line 5,Animal an = new Dog( ); and Dog an = new Dog ( ); gives the same output(walk-four).So,we can also achieve overriding by using the Dog class. Then why you are using Animal class instead of Dog class. Please explain me sir 🙏
You are creating obj for a child class which is already have (walk-four) ,method overriding is the concept which is dog class can specify its own implementation through animal class
Animal(parentclass) an=new dog();
@@NaveenKumar-zn3ms thanks bro
Bro normal note pad use panukaaaa .. because neeka.. type pandrathu. Fast ta iruguthu ena nadanguthunae puriya mataiguthu..