Add all 23 GoF design pattern implementations
This commit is contained in:
7
01-creational/abstract-factory/Button.java
Normal file
7
01-creational/abstract-factory/Button.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package abstractfactory;
|
||||
|
||||
// Every button, regardless of theme, must be able to render and handle clicks
|
||||
public interface Button {
|
||||
void render(); // draw on screen
|
||||
void onClick(); // respond to a click event
|
||||
}
|
||||
Reference in New Issue
Block a user