Saturday, August 24, 2013

Example of Decorator Pattern - LowerCaseInputStream

Create a LowerCaseInputStream class as follows

Use LowerCaseInputStream as follows


Find it really interesting? You can read more about Decorator pattern in Head First Design Pattern book.

2 comments:

  1. Check this URL

    https://gist.github.com/priyajava/4d73fd465f0d62860328

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete