Object-Oriented Design with Python Composition
Master the "has-a" relationship in Python to build flexible, modular, and maintainable software systems without the pitfalls of deep inheritance hierarchies.
-
💬
مدرب ذكاء اصطناعي
اسأل عن أي درس واحصل على إجابة واضحة فورًا، في أي وقت. -
🕐
ابدأ في أي وقت
بلا جداول أو مواعيد نهائية — تعلّم بوتيرتك، وقتما يناسبك. -
🌐
بالعربية
الدروس والمهام والشهادة — كل ذلك بلغتك بالكامل.
حول هذه الدورة
Inheritance is often the first tool developers reach for in object-oriented programming, but it can lead to rigid and fragile codebases. Python composition offers a powerful alternative, allowing you to build complex systems by combining simpler, independent components. This text-based course guides you through the principles of modular software design, helping you write clean, adaptable Python code.
By working through clear explanations and structured code examples, you will transition from basic object-oriented concepts to advanced design patterns. You will learn how to model real-world relationships accurately, ensuring your code remains easy to test and extend as your applications grow.
What you'll learn:
- Understand the fundamental differences between "is-a" inheritance and "has-a" composition
- Implement robust composition patterns using modern Python features like type hints and dataclasses
- Design modular classes that encapsulate specific behaviors and data attributes
- Refactor rigid inheritance chains into flexible, composed structures
- Practice decoupling software components to improve code reusability and testability
- Apply dependency injection techniques to swap components dynamically at runtime
The course begins with foundational concepts, defining key terminology and illustrating how Python handles object relationships under the hood. You will then explore practical design scenarios, comparing inheritance and composition side-by-side to understand when and how to apply each approach effectively.
This course is designed for beginner to intermediate Python programmers who understand basic class syntax and want to elevate their software design skills. No advanced architectural experience is required.
Start reading today to write cleaner, more maintainable Python applications.
ما الذي ستحصل عليه
-
📜
شهادة إتمام
أضفها إلى ملفك على LinkedIn -
💬
مدرّس AI شخصي
عالق في دورة؟ اسأل مدرّسك المدمج أي شيء، في أي وقت. -
🎧
النسخة الصوتية مضمَّنة
تعلَّم أثناء تنقُّلك — دون شاشة -
♾️
وصول مدى الحياة
عُد متى شئت، بلا انتهاء -
📱
الهاتف أو الكمبيوتر
يعمل في أي مكان وعلى أي جهاز -
💸
استرداد خلال 14 يومًا
دون أسئلة -
⚡
قصير ومركَّز
2 ساعة 42 دقيقة من المحتوى التطبيقي
المراجعات
لا توجد مراجعات بعد — كن أول من يشارك تجربته.
الأسئلة الشائعة
ما الذي أحتاجه لأخذ هذه الدورة؟ +
يكفي هاتف أو كمبيوتر متصل بالإنترنت. بدون تثبيتات أو أجهزة خاصة.
كيف يمكنني الدفع؟ +
بالبطاقة عبر Stripe. لا نخزن بيانات البطاقة — يتولى Stripe ذلك بأمان.
هل يمكنني استرداد المال؟ +
نعم — استرداد كامل خلال 14 يومًا، دون أسئلة.
إلى متى يستمر وصولي؟ +
إلى الأبد. بمجرد الشراء، الدورة لك تعود إليها متى شئت.
هل سأحصل على شهادة؟ +
نعم. عند الإتمام ستحصل على شهادة يمكنك إضافتها إلى ملفك في LinkedIn.
مصمَّم للعاملين في
التقنية
التصميم
المالية
التسويق
الرعاية الصحية
التعليم
الضيافة
التصنيع