why whenever we create object of child class , the parent class object is never made automatically in inheritance ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why whenever we create object of child class , the parent class object is never made automatically in inheritance ?

28th Aug 2016, 6:45 PM
rohan arora
2 Answers
0
Sorry, i dont quite seem to understand your point. Can you please expand on that....
28th Aug 2016, 9:14 PM
Ousmane Diaw
0
I want to say that in inheritance , when parent class is inherited to child class then with the child object ,always child class method are run if they override the parents method but in that case does parents object make automatically (explicitly we can make , iam asking why is it not made automatically)?
28th Aug 2016, 9:19 PM
rohan arora