Home > Articles > Programming > C#

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Thought Questions

  1. When someone enters an incorrect value in a cell of a grid, you might want to change the color of the row to indicate the problem. Suggest how you could use a Decorator.

  2. A mutual fund is a collection of stocks. Each one consists of an array, or Collection, of prices over time. Can you see how a Decorator can be used to produce a report of stock performance for each stock and for the whole fund?

  • + Share This
  • 🔖 Save To Your Account