Strategy Pattern

5 Questions

Settings
Please wait...
Strategy Quizzes & Trivia

Questions and Answers
  • 1. 
    Program to a ______ not an implementation
  • 2. 
    Which of the following from our Marker example are concrete implementations (check all that apply)
    • A. 

      Tippmann

    • B. 

      PoorResist

    • C. 

      AutoShot

    • D. 

      ShootBehavior

  • 3. 
    Favor inheritance over composition
    • A. 

      True

    • B. 

      False

  • 4. 
    Why is this so great? We get _______ and flexibility without the baggage of inheritance… that’s why!
  • 5. 
    The MarkerBrand abstract superclass    ______________  its behaviors, instead of using its own methods or that of its subclasses