?
What will be the output of the following Python code?
What will be the output of the following Python code?
class objects:
def __init__(self):
self.colour = None
self._shape = "Circle"
def display(self, s):
self._shape = s
obj=objects()
print(obj._objects_shape)
class objects:
def __init__(self):
self.colour = None
self._shape = "Circle"
def display(self, s):
self._shape = s
obj=objects()
print(obj._objects_shape)
Join the Discussion
Login to post a comment or share your explanation.
Login