<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Odigietony</title>
    <description>The latest articles on DEV Community by Odigietony (@odigietony).</description>
    <link>https://dev.to/odigietony</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F33460%2F0a6c90c2-a62d-431a-9967-31a0bc72e6b2.jpeg</url>
      <title>DEV Community: Odigietony</title>
      <link>https://dev.to/odigietony</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/odigietony"/>
    <language>en</language>
    <item>
      <title>The very simplified concept of Binding in programming languages</title>
      <dc:creator>Odigietony</dc:creator>
      <pubDate>Wed, 18 Oct 2017 10:19:23 +0000</pubDate>
      <link>https://dev.to/odigietony/the-very-simplified-concept-of-binding-in-programming-languages-op</link>
      <guid>https://dev.to/odigietony/the-very-simplified-concept-of-binding-in-programming-languages-op</guid>
      <description>&lt;p&gt;At the vary basic, binding is assigning one thing to another, usually, values to variables either by explicit declaration or implicit declaration. &lt;br&gt;
For the newbies in programming, the terms, explicit and implicit declaration seems daunting its really not. Explicit declaration simply implies a statement that defines the variable name and it's type e.g&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public int i;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;while in implicit, the default convention is implemented e.g&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int i;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;it assumes it is public. &lt;br&gt;
Binding &lt;code&gt;int a, b = 0;&lt;/code&gt; can occur at run-time or at compilation time, when it happens at run-time, the current state of the variable is changed in that a value is assigned to it. For instance&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a, b = 0, c;
    for(a = 0; a &amp;lt; 10; a++){
        b+=c;
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the state of &lt;code&gt;c&lt;/code&gt; changes as values are been added as the &lt;code&gt;for&lt;/code&gt; loop is being executed.&lt;br&gt;
    &lt;strong&gt;Types of Binding&lt;/strong&gt;&lt;br&gt;
 &lt;em&gt;Dynamic Binding&lt;/em&gt; : Variable are bound to a type depending on the value assigned.&lt;br&gt;
                    this happens at run-time.&lt;br&gt;
&lt;em&gt;Static Binding&lt;/em&gt; : This happens at compile time where the compiler figures out what variable to assign to what method or function. A perfect example is method overloading where two methods have same name but different number or type of parameter. If two parameters are passed in a method &lt;code&gt;A&lt;/code&gt; (that has two parameters), the compiler figures out that the method to return is &lt;code&gt;A&lt;/code&gt;.&lt;br&gt;
Hope this helps.&lt;/p&gt;

</description>
      <category>java</category>
    </item>
  </channel>
</rss>
