Skip to content

Commit

Permalink
📚 update README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
velizartodorov committed Oct 15, 2024
1 parent 1d6df97 commit 83d1900
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ and `Stopped` and the transition goes as follows:

The choice of a drink and container is based on
the [Factory Pattern](https://en.wikipedia.org/wiki/Factory_(object-oriented_programming)). All the
drinks and containers implement the abstract sealed classes `Drink` and `Container` respectively,
and inherit them. With the help of [sealed classes](https://kotlinlang.org/docs/sealed-classes.html)
drinks and containers implement the sealed interfaces `Drink` and `Container` respectively, and
implement them. With the help
of [sealed interfaces](https://kotlinlang.org/docs/sealed-classes.html#declare-a-sealed-class-or-interface)
in Kotlin, we can avoid the use of pattern matching/`switch`/`if...else` statements and can autoload
new implementations.

Expand Down

0 comments on commit 83d1900

Please sign in to comment.