Dynamic method dispatch is the way to provide run-time polymorphism in Java. Let’s look at what is static (compile-time) polymorphism and dynamic (run-time) polymorphism. Before understanding what is the difference between static and dynamic polymorphism, let’s look at what is method binding. The process of associating or linking a method call with its definition (body) is known as method binding. This is can take place in two ways: at compile time or at run-time. When method binding takes place at compile time it is known as static binding and if the method binding takes place at run-time it is known
The post why do we need dynamic method dispatch appeared first on Coding Security.
why do we need dynamic method dispatch
read more
Tidak ada komentar:
Posting Komentar