Difference between Encapsulation and Abstraction
问题 I had an interview today. I had a question from OOP , about the difference between Encapsulation & Abstraction ? I replied her to my knowledge that Encapsulation is basically to bind data members & member functions into a single unit called Class . Whereas Abstraction is basically to hide complexity of implementation & provide ease of access to the users. I thought she would be fine with my answer. But she queried, if the purpose of both are to hide information then what is the actual