The first parameter of each method:

The first parameter of each method:
A . holds a reference to the currently processed object
B . is always set to None
C . is set to a unique random value
D . is set by the first argument’s value

Answer: D

Explanation:

The first argument of every class method, including init, is always a reference to the current instance of the class. By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments