Abstraction in Java?
<p>Today i heard from my friend, that encapsulation is not only achieving information hiding but also abstraction. How does it achieve? </p>

<pre><code>public class employee {

     private String name;
     private int id;

     public void setName(String name){
         this.name = name;
     }

     public String getName(){
         return name;
     }
}
</code></pre>

<p>The above example achieves encapsulation where i am allowing the class to access my public method rather than private members, but where does the abstraction come into picture here? Can anyone explain me on abstraction in a bit clear manner. </p>
