PFP191Xuất hiện trong 1 đề thi
Given a code, ```python class People(): def __init__(self, name): self.name = name def namePrint(self): print(self.name) person1 = People("Sally") person2 = People("Louise") person1.namePrint() ``` What is a not correct answer?
Các lựa chọn
Aperson1 and person2 are two different instances of the People class.
BThe __init__ method is used to set initial values for attributes.
C'self' is not needed in def namePrint(self):
Dperson2 has a different value for 'name' than person1.