AAn attribute that can be accessed and changed from outside the class
BAn attribute that is hidden and cannot be accessed outside the class
CA method that runs automatically when an object is created
DA special function to delete an object
Step-by-Step Solution
Solution:
Step 1: Understand attribute visibility
Public attributes are designed to be accessed and modified from outside the class.
Step 2: Compare options
An attribute that can be accessed and changed from outside the class correctly describes public attributes. Options A, B, and D describe other concepts.
Final Answer:
An attribute that can be accessed and changed from outside the class -> Option A
Quick Check:
Public attribute = accessible outside [OK]
Quick Trick:Public means anyone can access or change it [OK]
Common Mistakes:
MISTAKES
Confusing public with private attributes
Thinking methods are attributes
Mixing up constructors with attributes
Master "Encapsulation and Data Protection" in Python
9 interactive learning modes - each teaches the same concept differently