Why is this program not polymorphic? : <p>In the follwoing program I am trying to overload a method by passing paramaters, but the out put for both methods is the same   </p>

<pre><code> public class A 
    {

    int a = 11;
    int b = 20;
    static int c = 0;

        public void A1(){

            c = a+b;

        }

        public void A1(int a,int b){

            c = this.a+this.b;

        }

        public static void main(String[] args){

            A a = new A();
            a.A1();// this should give 31
            System.out.print(c);
            a.A1(3,46);// this should give 49
            System.out.print(c);
        }
 }
</code></pre>

<p>OUTPUT : The output for both is 31.</p>

<p>Even though I am trying to overload , the out put for both is same.</p>
