Intro to Object Relationships: Software Engineering Full time 13 Phase 3 Hybrid

Close

Learning Goals


Key Vocab


Introduction

Python offers a high degree of flexibility in defining classes and creating objects. With Python, we can assign attributes and methods to classes and objects, as well as add new attributes to objects even after they have been instantiated. Additionally, we can create classes that inherit attributes and methods from a parent, enabling children classes to receive those features.

However, some relationships between classes and objects are not as straightforward as parent-child relationships. For instance, the job titles "Curriculum Developer" and "Instructor" fall under the broader category of "Jobs", but they also have associated concepts such as "Duties" and "Schedules". In such cases, we can't rely solely on inheritance to solve these issues. Nevertheless, we can still use the same Python techniques that you're already familiar with to create a wide variety of relationships.

In this module, we will delve into the various types of relationships and explore how to leverage Python to establish them.