Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Inheritance and composition is fundamentally the same. This is easy to see when you implement it in a language that has no specific support for either (like C). Inheritance is basically composition of the data and the vtable and then overriding the default vtable entry with the supertype implementation.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: