Skip to Content
Hands-On Design Patterns with C++
book

Hands-On Design Patterns with C++

by Fedor G. Pikus
January 2019
Intermediate to advanced
512 pages
14h 5m
English
Packt Publishing
Content preview from Hands-On Design Patterns with C++

Questions

  1. What is the Adapter pattern?
  2. What is the decorator pattern and how does it differ from the Adapter pattern?
  3. The classic OOP implementation of the decorator pattern is usually not recommended in C++. Why not?
  4. When should the C++ class decorator use inheritance or composition?
  5. When should the C++ class adapter use inheritance or composition?
  6. C++ provides a general function adapter for currying function arguments, std::bind. What are its limitations?
  7. C++11 provides template aliases that can be used as adapters. What are their limitations?
  8. Both the adapter and policy patterns can be used to add or modify the public interface of a class. Give are some reasons for preferring one over the other.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Structural Design Patterns in Modern C++

Structural Design Patterns in Modern C++

Umar Lone

Publisher Resources

ISBN: 9781788832564Supplemental Content