85.2k views
2 votes
The function changeLocation is also called a _____.

class bike:
def __init__(self,size,idNum,color ):
self.size = size
self.location = 10
self.color = color
self.idNum = idNum

def changeLocation(self,newLocation):
self.location = newLocation


manipulator

initiator

method

constructor

User Colibrow
by
5.3k points

2 Answers

3 votes

Answer:

class and self

Step-by-step explanation:

class Bike:

def __init__(self, str, float):

self.color = str

self.price = float

User Zwb
by
5.9k points
5 votes

Answer:

The answer is a method

Step-by-step explanation:

User Antonin Cezard
by
5.0k points