116k views
18 votes
Which line of code could be used for a constructor?

def init (firstName, lastName, idNum)
def _init_(self, firstName, lastName, idNum)
def _init_(firstName, lastName, idNum)
def init(self, firstName, lastName, idNum)

User Kobek
by
3.6k points

2 Answers

9 votes

Answer:

Its c. def __init__( firstName,lastName,idNum):

Step-by-step explanation:

User FuzzyTree
by
4.1k points
11 votes

Step-by-step explanation:

I think (first name last name id Num)

User Russell Sim
by
4.3k points