• DeltaWingDragon@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 days ago

    They like most parts of OOP, except for inheritance.

    They don’t like inheritance because… subclass objects can’t be stored directly in an array[superclass], because the sizes are different, and you have to use pointers. This means that the program will be slower because it will access RAM instead of registers or cache.

    If you’re that concerned about performance, why use an OOP language at all? Why not just use C?