In object oriented programming class the instructor is telling that
Inheritance is called Object code level reuse.
But I was thinking how because We don't have the source code is not available in object or any other compiled library file so how can we inherit a function or class for reuse if We don't have the source code.
Normally we inherit a class whose source code or class information is available.
Can somebody explain it?
The other question need the explanation is :
how container-ship is different than inheritance?
Because I read that container-ship is a derive which has a relation-ship from base class as "has a relation", which I feel is inheritance only.
Any explanation is appreciated.
Thanks.