ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Java does not support multiple inheritance. but, by using interface we can achieve it.. any other way for multiple inheritance?

user-image
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2013/11/23
Bassem Zohdy
من قبل Bassem Zohdy , Senior Software Architect , HelpAG

you can use proxy pattern to add functions you want to add to any instance, spicialy if it is dynamic

Ajith Fernandez
من قبل Ajith Fernandez , Software Engineer , Nayasoft Solutions Pvt.ltd

If you want to combine the functionality of two classes into one, we can use object composition.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟