How to change the value of variable in interface by class who implement it in java?
<p>I have interface : </p>

<pre><code>public interface Myglobal 
{
public int Type =0;
}
</code></pre>

<p>Then I have class implement My interface like :</p>

<pre><code>Public class A implements Myglobal 
{
Public class A ()
{
this.type=1; // here error because type final in interface
}
}
</code></pre>

<p>I want for evrey class implement the interface to change the value of variable type ... so how I can do it with java ?</p>