Add all 23 GoF design pattern implementations (2026-06-13)
This commit is contained in:
7
03-behavioral/visitor/Shape.java
Normal file
7
03-behavioral/visitor/Shape.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package visitor;
|
||||
|
||||
/** Element interface — accepts a visitor */
|
||||
public interface Shape {
|
||||
void accept(ShapeVisitor visitor);
|
||||
String getName();
|
||||
}
|
||||
Reference in New Issue
Block a user