Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #mlc,hr,ccc
- class Calculator:
- def __init__(self , cpu , gpu , ram):
- self.__cpu = cpu
- self.__gpu = gpu
- self.__ram = int(ram)
- self.__e_intreg = True
- def get_cpu(self):
- return self.__cpu
- def set_cpu(self,cpu):
- self.__cpu = cpu
- calculator1 = Calculator("i7", "gtx1070", "350")
- print(calculator1.get_cpu())
- calculator1.set_cpu("i9")
- print(calculator1.get_cpu())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement