Skip to content

Composite pattern  #3

Description

@nhaouari

Thank you very much for this professional guide for design patterns.

I want to suggest a clearer definition Composite pattern:

Composite Pattern intent is to compose complex objects using other simpler objects into tree structures allowing the client(s) to treat these structures as if they were individual objects (Source: Mastering Javascript Design Third Edition)

Also, I think that the presented example does not reflect clearly this concept of compositions.

Best regards.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions