Why we are give a parrent class refference at the time of object creation of child class? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
0
Can you write a sample code?
13th Sep 2017, 7:55 PM
Victor IT
Victor IT - avatar