Your implementation does not follow the "factory method pattern", and this is why your implementation is not compatible with the design shown in the refactoring.guru web site your exemple design called "simple factory" and it is not a"factory method pattern".
معلومات قيمه للغايه
لا تقدر بثمن شاكرين مجهودك الوافر
ونتمنى لك دوام التوفيق
ان شاء الله القادم احلى بكثير
@@raoufrahiche
كلنا شغف لما هو جديد
جزاك الله خيرا شرح رائع
درس رائع شكرا لك رؤوف
شرح رائع شكرا جزيلا
ممتاز
Your implementation does not follow the "factory method pattern", and this is why your implementation is not compatible with the design shown in the refactoring.guru web site
your exemple design called "simple factory" and it is not a"factory method pattern".