Frage im Vorstellungsgespräch bei Tata Consultancy Services

Using an OOP principle, which one would you use to avoid code duplication?