from abc import ABC
class Person(ABC):
def __init__(self,name):
self.__name = name
class Worker(Person):
def __init__(self,name):
super().__init__(name)
print(self.__name)
Worker("Ania")
I want output "Ania", but I have this error instead:
'Worker' object has no attribute '_Worker__name'