Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #الوراثة
- class hilal:#الكلاس المورس
- h=8
- u=9
- def g(self):
- return "that is class hilal"
- class beko(hilal):#بين القوسين نضع الكلاس المورث
- def y(self):
- return "that is class beko"
- #beko هو الكلاس الوراث
- b=beko()
- print(b.h)
- print(b.u)
- print(b.g())
- print(b.y())
Advertisement
Add Comment
Please, Sign In to add comment