English
Topic 8. Classes and objects: attributes, methods, constructors, properties, and encapsulation
Goal: learn to design classes with invariants, initializers, properties, and different kinds of methods; distinguish class state from instance state, and model object relationships with UML.
Lecture contents
- Classes, initialization, and attributes — Objects and classes · Class definition and initialization · Class and instance attributes
- Encapsulation and properties — Encapsulation and the public interface · Properties: reading, writing, and deleting
- Class methods and string representation — Class methods and static methods · String representation and object relationships
- Identity and class design — Identity, equality, and the lifecycle · Design and working in PyCharm