Abstract Factory Pattern is a creational design pattern that provides an interface for creating families of related or dependent objects without specifying their concrete classes.
The client works only with abstract interfaces, making the system flexible and easy to extend.
بيوفّر واجهة لإنشاء مجموعة (عائلة) من الكائنات المرتبطة ببعضها
من غير ما نحدد الكلاسات الحقيقية اللي هتتنفذ.
الـ client بيتعامل مع interfaces فقط
وده بيخلي السيستم مرن وسهل التوسعة.
بدل ما نستخدم new مباشرة:
.webp)
