Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

When to use it:

  1. When you have a family of algorithms that do the same thing, but in a different way.
  2. When you want decouple the client usage from the actual implementation.
  3. Is a good alternative for a inheritance because it brings more flexibility horizontally in the Inheritage Tree.
  4. Capture the abstraction into an interface, and the implementation into concrete classes.

References:

  1. Youtube Christopher Okhravi
  2. Github Qian Mo
  3. Article Source Making
  4. Article Guru

Sorting Agorithms in the example are taken from: