8000 GitHub - incCool/desigin_pattern_python: Demo about 24 desigin patterns with code and instances.
[go: up one dir, main page]

Skip to content

Demo about 24 desigin patterns with code and instances.

Notifications You must be signed in to change notification settings

incCool/desigin_pattern_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desigin_pattern_python

Demo about 24 desigin patterns with code and instances.

Define an interface for creating objects, and let the subclass decide which class to instantiate. Factory Method delays the instantiation of a class to its subclasses.

Applicability

When a class doesn't know which class of the object create.

When a class wants to specify the object it creates by its subclasses.

When the class delegates the responsibility of creating an object to one of several help subclasses, and you want to localize which help subclass is the agent.

7.Command

About

Demo about 24 desigin patterns with code and instances.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0