0
fill in the blanks to make a setter the property name
object oriented programming module 7 quiz 9
4 ответов
+ 6
@name.setter
def name(self, value):
self._name = value
0
class Person:
def __init__(self, name):
self._name = name
@property
def name(self):
return self._name
@name.setter
def name(self, value):
self._name = value
- 2
class Person:
def __init__(self, name):
self._name = name
@property
def name(self):
return self._name
@name.setter
def name(self, value):
self.
_name
= value
- 8
RTFM