Add all 23 GoF design pattern implementations (2026-06-13)
This commit is contained in:
7
03-behavioral/mediator/ChatMediator.java
Normal file
7
03-behavioral/mediator/ChatMediator.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package mediator;
|
||||
|
||||
/** Mediator interface — defines how colleagues communicate through the hub */
|
||||
public interface ChatMediator {
|
||||
void sendMessage(String message, User sender);
|
||||
void addUser(User user);
|
||||
}
|
||||
Reference in New Issue
Block a user