# Enkapsulacja, gettery i settery
class Computer:
    number = 4
    def __init__(self):
        self.__max_price = 900

    def get_max_price(self):
        return self.__max_price

    def set_max_price(self, price):
        self.__max_price = price

    @property
    def max_price(self):
        return self.__max_price

    @max_price.setter
    def max_price(self, price):
        self.__max_price = price

    @classmethod
    def num_computers(cls):
        print(cls.number)

c = Computer()

# print(c.__max_price) #AttributeError! Czyli ok!
print(c.get_max_price())
c.set_max_price(1200)
print(c.get_max_price())

# @property
print(c.max_price)

# @setter
c.max_price = 1500
print(c.max_price)

# @classmethod
print(c.num_computers())
0794acc54e948530ca1f8c1a79e6af2f2c6cb448
class Computer:
    <mask token>

    def __init__(self):
        self.__max_price = 900
    <mask token>

    def set_max_price(self, price):
        self.__max_price = price

    @property
    def max_price(self):
        return self.__max_price
    <mask token>
    <mask token>


<mask token>

class Computer:
    <mask token>

    def __init__(self):
        self.__max_price = 900

    def get_max_price(self):
        return self.__max_price

    def set_max_price(self, price):
        self.__max_price = price

    @property
    def max_price(self):
        return self.__max_price

    @max_price.setter
    def max_price(self, price):
        self.__max_price = price
    <mask token>


<mask token>

class Computer:
    number = 4

    def __init__(self):
        self.__max_price = 900

    def get_max_price(self):
        return self.__max_price

    def set_max_price(self, price):
        self.__max_price = price

    @property
    def max_price(self):
        return self.__max_price

    @max_price.setter
    def max_price(self, price):
        self.__max_price = price

    @classmethod
    def num_computers(cls):
        print(cls.number)


<mask token>
print(c.get_max_price())
c.set_max_price(1200)
print(c.get_max_price())
print(c.max_price)
<mask token>
print(c.max_price)
print(c.num_computers())

class Computer:
    number = 4

    def __init__(self):
        self.__max_price = 900

    def get_max_price(self):
        return self.__max_price

    def set_max_price(self, price):
        self.__max_price = price

    @property
    def max_price(self):
        return self.__max_price

    @max_price.setter
    def max_price(self, price):
        self.__max_price = price

    @classmethod
    def num_computers(cls):
        print(cls.number)


c = Computer()
print(c.get_max_price())
c.set_max_price(1200)
print(c.get_max_price())
print(c.max_price)
c.max_price = 1500
print(c.max_price)
print(c.num_computers())

# Enkapsulacja, gettery i settery
class Computer:
    number = 4
    def __init__(self):
        self.__max_price = 900

    def get_max_price(self):
        return self.__max_price

    def set_max_price(self, price):
        self.__max_price = price

    @property
    def max_price(self):
        return self.__max_price

    @max_price.setter
    def max_price(self, price):
        self.__max_price = price

    @classmethod
    def num_computers(cls):
        print(cls.number)

c = Computer()

# print(c.__max_price) #AttributeError! Czyli ok!
print(c.get_max_price())
c.set_max_price(1200)
print(c.get_max_price())

# @property
print(c.max_price)

# @setter
c.max_price = 1500
print(c.max_price)

# @classmethod
print(c.num_computers())