{"id":4398,"date":"2014-03-30T10:32:05","date_gmt":"2014-03-30T10:32:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-this-true-about-late-binding-collection-of-common-programming-errors\/"},"modified":"2014-03-30T10:32:05","modified_gmt":"2014-03-30T10:32:05","slug":"is-this-true-about-late-binding-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-this-true-about-late-binding-collection-of-common-programming-errors\/","title":{"rendered":"Is this true about late binding?-Collection of common programming errors"},"content":{"rendered":"<p>I read in &#8220;Thinking in java&#8221; in chapter &#8220;Polymorphism&#8221; about the concept of &#8220;Late binding&#8221; , i just wanna know if my understanding of this concept is true<\/p>\n<p>Procedural languages know where is the function to execute before run-time for instance<\/p>\n<pre><code>if(condition){func1();}else{func2();}\n<\/code><\/pre>\n<p>So the address of each possible function is known exactly and before the program runs , so it is compiled easily , but in OOLs examine this code ,,<\/p>\n<pre><code>makeItSpeak(Animal a ){\n  a.speak();\n}\n<\/code><\/pre>\n<p>While a may be a dog , a cat or any other Animal type , and because we initialize objects at run-time , so we must pass the argument upon which we run speak at run-time , so this is late binding which occurs at run-time &#8230;.<\/p>\n<p>IS THAT TRUE ??<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I read in &#8220;Thinking in java&#8221; in chapter &#8220;Polymorphism&#8221; about the concept of &#8220;Late binding&#8221; , i just wanna know if my understanding of this concept is true Procedural languages know where is the function to execute before run-time for instance if(condition){func1();}else{func2();} So the address of each possible function is known exactly and before the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4398","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4398"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4398\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}