Abstraction in Java?

前端 未结 10 1821
鱼传尺愫
鱼传尺愫 2021-02-15 00:43

Today i heard from my friend, that encapsulation is not only achieving information hiding but also abstraction. How does it achieve?

public class employee {

           


        
10条回答
  •  抹茶落季
    2021-02-15 01:07

    I think he's confusing polymorphism with encapsulation. Polymorphism can help you achieve abstration.

提交回复
热议问题