Re:OOP in C
by fpoling on Sunday January 08, 2023 @12:04PM
(#34300798)
The main issue with inheritance is hard coupling of data and code. As code evolve from data modeling point of view it can be advantages to split the state managed by one object into several data structures. With data inheritance such refactoring is almost impossible. When inheritance is limited only to pure interfaces the access to the state is not hard-coded and can be redirected as necessary.
[ Parent
| on HN ]
There are no comments on this comment yet.