0

In Inheritance, does base class is dumped into derived class or reference address of base class is created in derived class?

I searched a lot in internet. But I didn't find actual answer. If base class is dumped into derived class, then how reusability is achieved? If so, don't the lines of code increases in the backend? If lines of code increases, space complexity increases, don't it affects a lot? I want a clean and clear explanation on it. Can anyone help....!! I am not talking about particular language like c++, java etc .. I think mechanism of inheritance is same in all languages. If not, please explain me about that also. Thanks in advance....

30th Jan 2022, 3:44 AM
Pardha Saradhi
4 Answers
0
GHOST mHBr I didn't find answer there
30th Jan 2022, 9:35 AM
Pardha Saradhi
0
Pardha Saradhi I think object oriented in base is relevant to hardware because we have object oriented architecture in CPUs
30th Jan 2022, 9:41 AM
GHOST mHBr
GHOST mHBr - avatar
0
GHOST mHBr Maybe.. but I am talking about memory management. I am talking about backend process of inheritance
30th Jan 2022, 9:42 AM
Pardha Saradhi