#polymorphism

[ follow ]
fromHackernoon
2 years ago
JavaScript

How to Implement the Visitor Pattern Correctly | HackerNoon

Using the Visitor pattern with instanceof checks leads to code maintainability issues.
fromMedium
5 months ago
Scala

Universal vs. Existential Types: Is It For All or Existential Crisis?

Universal types allow code to work with any type due to their polymorphic nature, while existential types signify the existence of some unknown types.
fromMedium
5 months ago
JavaScript

Bounded Quantification: Why Your Types Need Boundaries Even If You Don't!

Universal quantifiers are contravariant as they must operate on all subtypes of a defined bound.
Existential quantifiers are covariant since they represent the existence of some specific type within a bound.
fromCodeProject
7 months ago
JavaScript

What are overloading and overriding in Java

Method overloading allows methods to have the same name but different parameters, improving readability.
Method overriding enables subclasses to provide specific implementations of superclass methods.
fromSimplilearn.com
3 years ago
JavaScript

Learn What is Interface in PHP with Example | Simplilearn

Interfaces in PHP define methods a class should implement, promoting polymorphism and multiple class implementations.
[ Load more ]