เส้นทางการเรียนรู้

OOP และดีไซน์แพทเทิร์นใน Python

คลาสและออบเจกต์ ต่อด้วยแพทเทิร์นแบบสร้าง โครงสร้าง และพฤติกรรมที่ใช้ในโค้ด Python จริง

บทเรียน 14 บท · โจทย์ 14 ข้อ

เริ่มเส้นทาง →

1 คลาสและออบเจกต์ บทเรียน 2 บท

  1. บทเรียน โจทย์ 1 ข้อ Class และ Object ใน Python นิยามชนิดข้อมูลที่มีสถานะและพฤติกรรม
  2. บทเรียน โจทย์ 1 ข้อ การเขียนโปรแกรมเชิงวัตถุใน Python เรียนรู้ encapsulation, inheritance, method overriding และ polymorphism ด้วยตัวอย่างที่รันได้

2 แพทเทิร์นการสร้าง บทเรียน 3 บท

  1. บทเรียน โจทย์ 1 ข้อ Singleton Pattern in Python Ensure a class has one shared instance and provide a global access point.
  2. บทเรียน โจทย์ 1 ข้อ Factory Method Pattern in Python Let subclasses or a factory method choose which concrete object to create.
  3. บทเรียน โจทย์ 1 ข้อ Builder Pattern in Python Construct a complex object through clear, incremental steps.

3 แพทเทิร์นโครงสร้าง บทเรียน 4 บท

  1. บทเรียน โจทย์ 1 ข้อ Adapter Pattern in Python Convert an existing interface into the interface a client expects.
  2. บทเรียน โจทย์ 1 ข้อ Decorator Pattern in Python Add behavior to an object dynamically without changing its class.
  3. บทเรียน โจทย์ 1 ข้อ Facade Pattern in Python Provide one simple interface to a complex subsystem.
  4. บทเรียน โจทย์ 1 ข้อ Composite Pattern in Python Treat individual objects and object groups through the same interface.

4 แพทเทิร์นพฤติกรรม บทเรียน 5 บท

  1. บทเรียน โจทย์ 1 ข้อ Observer Pattern in Python Notify subscribed objects automatically when subject state changes.
  2. บทเรียน โจทย์ 1 ข้อ Strategy Pattern in Python Select an interchangeable algorithm at runtime.
  3. บทเรียน โจทย์ 1 ข้อ Command Pattern in Python Represent a request as an object that can be queued, logged, or undone.
  4. บทเรียน โจทย์ 1 ข้อ State Pattern in Python Change an object's behavior when its internal state changes.
  5. บทเรียน โจทย์ 1 ข้อ Iterator Pattern in Python Traverse a collection without exposing its internal representation.