# Основы ООП.Класс и обьекты
class A:
    property1 = 'Property 1'
    property2 = 'Property 2'
    name = 'guest'

    def say_hi(self, name=''):
        if name:
            return 'Hi , ' + name
        else:
            return 'Hello, ' + self.name


a = A()
b = A()
# a.property1 = 'Property 1'
# a.property2 = 'Property 2'
# print(a)
print(a.property1)
print(a.say_hi('John'))
