Skip to content

Add a cautionary note about OOP #18

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions