☕️JAVA Language Community
2.91K subscribers
144 photos
7 videos
31 files
42 links
☕️ Software, IT, Java, news
💻 IT highlights
🎯 AI update
🖥⌨️🖱
Download Telegram
#Design_Patterns

#Structural_patterns

▪️In Software Engineering, Structural Design Patterns are Design Patterns that ease the design by identifying a simple way to realize relationships between entities.


1️⃣ #Adapter_Design_Pattern
Match interfaces of different classes

2️⃣ #Bridge_Design_Pattern
Separates an object's interface from its implementation

3️⃣ #Composite_Design_Pattern
A tree structure of simple and composite objects

4️⃣ #Decorator_Design_Pattern
Add responsibilities to objects dynamically

5️⃣ #Facade_Design_Pattern
A single class that represents an entire subsystem

6️⃣ #Flyweight_Design_Pattern
A fine-grained instance used for efficient sharing

7️⃣ #PrivateClassData_Design_Pattern
Restricts accessor/mutator access

8️⃣ #Proxy_Design_Pattern
An object representing another object

@javaCode☕️
#Design_Patterns

#Structural_patterns

#Composite_Design_Pattern

👉Intent

▪️Compose objects into tree structures to represent whole-part hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.

▪️Recursive composition

▪️"Directories contain entries, each of which could be a directory."

▪️1-to-many "has a" up the "is a" hierarchy

@javaCode☕️