Python Developer — Medium
Key points
- The class attribute x remains 5 for all instances of A
- Changing a1.x to 10 only affects that specific instance
- a2.x remains 5 since it was not modified
Ready to go further?
Related questions
Python Developer — Medium
Key points
Ready to go further?
Related questions