Mid GoF Patterns

Terminal Expression (Number):?

  • The Number class is a terminal expression that holds a single value. When

the Interpret method is called, it returns the value of the number.

  • Terminal expressions represent the simplest elements in the language or

grammar.

More from Design Patterns in C#

All questions for this course