Mid OOP What’s the role of encapsulation in API security? Protects internal data by restricting direct access.Ensures sensitive fields are accessed only via methods/properties, preventing misuse.