What is a key feature of object-oriented programming? 🔊
A key feature of object-oriented programming (OOP) is encapsulation, which involves bundling the data and methods that operate on the data within a single unit or class. This promotes modularity and code reusability by restricting access to the internal state of objects. Encapsulation allows developers to hide complex implementations from users and provides a clear interface for interaction.
Equestions.com Team – Verified by subject-matter experts