File size: 429 Bytes
15d650d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cdca970
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# class A:
#     def __init__(self):
#         self._bill = 1

#     @property
#     def bill(self):
#         return self._bill

#     @bill.setter
#     def bill(self,value):
#         self._bill = value
#         # raise PermissionError("You can't change the bill")

# class B(A):
#     def __init__(self):
#         super().__init__()
#         self._bill = 2

# # b = B()
# # print(b.bill)
# a=A()
# a.bill=3
# print(a.bill)