Decorator vs Inheritance
You have a Stream base class and need to support optional compression, encryption, and buffering in any combination. Using inheritance, how many classes would you need to cover all combinations of these three features?
Sign in to answer questions and track your progress
Sign In