car1=Car()
-
car1.go()
-
self
-
def go():
print("The car is going")
-
A method that runs automatically when an object is instantiated from a class.
A.
A reference to objects of a class.
B.
Instantiate and object named car1 from the Car class.
C.
Constructor
D.
Creates a method of the Car class.
E.
Call a method for an object of the car class.