Final answer:
The consequence of declaring data attributes private is that they are accessible for read/write within the class but restricted from access outside the class. The correct answer is e. I and III only.
Step-by-step explanation:
When data attributes are declared as private in a class:
- Access to the data attributes is read/write to members of the same class (I).
- Access to the data attributes is not read-only to members outside the class; it's typically no access at all, or access is provided through specific methods (III).
- Access to the data attributes is completely restricted to members outside the class unless explicitly allowed (using methods like getters and setters)
Therefore, the correct answer is e. I and III only. By declaring data attributes as private, one controls the encapsulation of the class, ensuring that its internal state cannot be directly manipulated from outside the class, and maintains the integrity of the data.