Mastercard interview question

1. Difference between encapsulation and abstraction

Interview Answer

Anonymous

31 Jan 2022

Abstraction is the method of hiding the unwanted information. Whereas encapsulation is a method to hide the data in a single entity or unit along with a method to protect information from outside