Function overload | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Function overload

Also function overload is called function polymorphism. Is function polymorphism example of polymorphism in OOP?

26th Jan 2019, 5:24 PM
Михаил Ткаченко
Михаил Ткаченко - avatar
1 Answer
+ 1
Михаил Ткаченко, Mainly OOP: Polymorphism is when everything is an object. Inheritence is an clone of an object class Static is a child of the class and therefore, co-operates not with the inheritence or contructors. Here more information on polymorphism in Javascript: https://stackoverflow.com/questions/27642239/what-is-polymorphism-in-javascript
26th Jan 2019, 10:21 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar