Skip to content

Document the case where an interface has two Create methods with same number of arguments #5

@salfab

Description

@salfab

for classes with two constructors and factories with two Create methods: make sure the names of the arguments are different in both constructors.

the trick is to name the arguments differently if they don't already have a different signature.

as long as the names of the method match the names of the constructor, it should work and select the correct constructor.

(Abstract Factory pattern)

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