Dynamic binding
It is possible to do static binding, when a specific object is tied to a specific class, however it is also possible to perform dynamic binding. Dynamic binging is a binding to a class that depends on a value of a variable. For example a pet can be a dog or a cat depending on what owners got.
Comments
Post a Comment