10 The Adapter and Façade Design Patterns

This chapter covers

  • The Adapter Design Pattern
  • The Façade Design Pattern

In this chapter, we tackle an all-too-common problem: working with legacy software. This code can be from a library that we can’t modify, or it can be other external code that we don’t have access to or otherwise cannot modify.

The Adapter Design Pattern provides a model for a software architecture that needs to integrate external code, such as from a library, with code in an existing application. However, the external and application codes weren’t originally designed to work together, and we cannot change either of them. The pattern can also help to isolate an application from interface changes in the external code that may be ...

Get Object-Oriented Software Design in C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.