Комментарии:
We can achieve overloading within the same class as well as using parent-child relationship also.
ОтветитьIf we create object for both class and calling same name function separately then what will be get output.
ОтветитьIf we used overriding concept and after inherit then we will get drived classes 's output . So what is use of base class same name function. Why we use overriding
ОтветитьHappy Happy Sir
ОтветитьVery interesting because separate the small part of question.
Ответить