Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #التغليف المستوي المنخفض او العادي
- class beko:
- def __init__(self,x=0,y=0):
- self.x=x
- self.y=y
- #الدالة set لوضع قيمة العنصر
- def _set_(self,x):
- self.x=x
- def _get_(self):
- return self.x
- #الدالة getلطباعه العنصر
- def _set1_(self,y):
- self.y=y
- def _get1_(self):
- return self.y
- b=beko()
- b._set_(8)
- b._set1_(9)
- print(b._get_()+b._get1_())
Advertisement
Add Comment
Please, Sign In to add comment