class A:

    def __init__(self, name):
        self.__name = name

def print_name(self):
    print(self.__name)


class B(A):

    def __init__(self, name):
        A.__init__(self, name)
self.__name = name + 'yes'
Subclass variables with the same name of superclass ones