QA InfoTech Interview Question

What is Encapsulation?

Interview Answer

Anonymous

Mar 12, 2019

Binding variables into methods so that It can be treated as a single unit . It is also known as data hiding. To achieve encapsulation use getter and setter methods.