Lecture Reviews
Lecture 16: Introduction to Classes
What is
self
? Why use it?
What is
__init__
? Why use it?
Lecture 17: "Private" Members, Set/Get Methods, Property, and Special Methods
What is the difference between a property and a field? between a property and a method?
What does the each of the following methods do?
__init__
__eq__
When writing a class, how do you determine whether two objects are equal?
Lecture 18: Data Aggregation and the Copy Method
What is the difference between a shallow copy and a deep copy?
In which methods should you put code to ensure data aggregation security?