Object-oriented programming: Difference between revisions

Content deleted Content added
Adamd9NEW (talk | contribs)
m typo
Tags: Visual edit Mobile edit Mobile web edit
typo
 
Line 181:
 
===Dynamic dispatch===
A method mymay be invoked via [[dynamic dispatch]] such that the method is selected at runtime instead of compile time. If the method choice depends on more than one type of object (such as other objects passed as parameters), it's called [[multiple dispatch]].
 
Dynamic dispatch works together with inheritance: if an object doesn't have the requested method, it looks up to its parent class ([[Delegation (object-oriented programming)|delegation]]), and continues up the chain to find a matching method.