What is the main difference of both of these methods,are they both the same thing?
لقد تم الإبلاغ عن هذا السؤال
1
الرد
6519
أدوات العرض
Hi,
When extending in Js, instances from the parent class remain untouched, but instances from the new child class will have the extended features.
When you include, you are adding the new features to the prototype of the parent class.
Here is a link to the blog which explains in detail about their difference.
Hope it helps
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
1
نوفمبر 22
|
3415 | ||
|
|
1
نوفمبر 22
|
3547 | ||
|
|
0
ديسمبر 20
|
58 | ||
|
|
1
مارس 25
|
2826 | ||
|
|
0
يناير 22
|
3960 |