- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 36字
- 2021-06-24 14:58:07
The Expression interface
The Expression interface declares the interpret() method, which receives a Conversion object as an argument:
interface Expression {
void interpret(Conversion orignalContent);
}
As shown, the Expression interface consists of a single interpret() method.