Skip to content

Add a cautionary note about OOP #18

@chillenzer

Description

@chillenzer

Code design based heavily on inheritance has become a bit unfashionable over the years. One of its pitfalls is that code-wise sensible abstractions are not necessarily related to real-world ones. Examples: Is a Square a special case (translating to child class) of a Rectangle or the other way round? Is a Penguin a Bird or a Fish? I would suggest that we add a challenge (or even a section) about this at the end of the inheritance chapter.

Likely related to #14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions