Why we are give a parrent class refference at the time of object creation of child class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we are give a parrent class refference at the time of object creation of child class?

we also create child class object using child class reference then why we create child class object using parent class reference.

5th Sep 2017, 6:27 PM
Shivam Jamaiwar
Shivam Jamaiwar - avatar
1 Answer
0
Can you write a sample code?
13th Sep 2017, 7:55 PM
Victor IT
Victor IT - avatar