What is the main difference of both of these methods,are they both the same thing?
Bu soru işaretlendi
1
Cevapla
6496
Görünümler
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
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
1
Kas 22
|
3400 | ||
|
|
1
Kas 22
|
3523 | ||
|
|
0
Ara 20
|
58 | ||
|
|
1
Mar 25
|
2802 | ||
|
|
0
Oca 22
|
3937 |