Red Hat interview question

Explain encapsulation.

Interview Answer

Anonymous

28 June 2018

Also known as information hiding. Encapsulation ensures that data is validate before being set, and can also be used to format data before being sent to another component