Skip to content

muskangupta042002/LLD---JAVA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strategy Pattern

Defines a family of algorithms, encapsulates each one and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.

Notes:

  • Encapsulate what varies
  • Favor composition over Inheritance
  • Program to interfaces, not implementations

For setting Behavior dynamically we can use setter method for that Behavior

Factory Method Pattern

All factory Patterns encapsulate object creation. The Factory Method Pattern encapsulates object creation by letting subclasses decide what object to create.

Command Pattern

The Command Pattern encapsulates a request as an object, therefore letting you parameterize other objects with different requests, queue or log requests, and support undoable operations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages