Sign in
Log inSign up
Why is object composition better than inheritance?

Why is object composition better than inheritance?

Ron Hodgeman's photo
Ron Hodgeman
·Mar 3, 2016

I know this as a rule of thumb for a long time now but I still don’t know the actual reason behind it. An easy to understand explanation will be deeply appreciated.