Amadeus interview question

How does Agile work? Explain Encapsulation in OOP