Classes Relationships Types: Python OOP Complete Course — Part 23

Learn what the classes relationship types in the Python OOP are.

Samer Sallam
2 min readFeb 23, 2023
A dummy image for better reading and navigation.
Photo by Chris Ried on Unsplash

Before we start let me tell you that:

  • This article is a part of The Complete Course in Object-Oriented Programming in Python which you can find it here.
  • This article is also available as a YouTube video here.

Introduction

You have seen so far that classes or entities are not isolated in the real world. So, what are the main types of relationships between classes?

In this article, a quick overview of relationship types will be presented.

Relationships Types

Classes relationships describe how classes and classes’ objects interact with each other. In the OOP world, there are two types of relationships:

  • Inheritance Relationship:

In this type, one class can inherit all the methods and attributes of another class. In other…

--

--

Samer Sallam

Principal Data Engineer who loves designing optimised data workflows and helping companies find real value in their data.