liveBook · Manning

Object family

An object family is a set of related object types whose instances are designed to work together as a compatible product group.

How 2 Manning books explain it

Software Design for Python Programmers

An object family is a set of related object types whose instances are designed to work together as a compatible product group.

How it is used
Uses object families to prevent incompatible related objects from being combined.
How deep it goes
Defines family compatibility and demonstrates it through factories, constructors, subclasses, and concrete Python classes.
Examples
Uses engine parts plus varsity and intramural players, venues, sports, and factories.
What you can do after
Apply it via an Abstract Factory to create compatible related objects without exposing concrete creation details.

Read how Software Design for Python Programmers explains object family →

Object-Oriented Software Design in C++

An object family is a set of related objects whose implementations are intended to be created together as a compatible product group.

How it is used
Keeps related objects compatible when an application creates multiple product families.
How deep it goes
Explains family selection through abstract and concrete factories, product constructors, and delegated creation.
Examples
Uses engine parts, varsity and intramural sports, players, venues, factories, and Sport constructors.
What you can do after
Apply it via the Abstract Factory Design Pattern to create compatible groups without exposing concrete classes.

Read how Object-Oriented Software Design in C++ explains object family →

What to know first

Related concepts

Questions about object family

What is object family?

An object family is a set of related object types whose instances are designed to work together as a compatible product group.

Which Manning books explain object family?

Software Design for Python Programmers and Object-Oriented Software Design in C++.

What should I know before learning object family?

Manning books that teach object family usually introduce engine part, factory, player and runtime logic error first.

What is object family part of?

Object family is part of engine part. An engine part is a physical component that contributes to an engine’s construction or operation.

What are the parts of object family?

Object family includes player and venue.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.