Hi,
Was reading some articles and got this code in the multi-choice option, wanted to know what would be the put of this code?
Was reading some articles and got this code in the multi-choice option, wanted to know what would be the put of this code?
class BaseClass: def __init__(self): self._x = 10 class DerivedClass(BaseClass): def __init__(self): BaseClass.__init__(self) print(self._x) obj1 = DerivedClass() obj2 = BaseClass() print(obj2.x))Thank You!
buran write Apr-27-2023, 08:04 AM:
Spam link removed
Spam link removed