OOP finished

This commit is contained in:
Hizenberg469
2025-03-10 11:40:48 +05:30
parent a66bcc3af7
commit 27ec86a094
6 changed files with 144 additions and 56 deletions

18
OOP/SuperList.py Normal file
View File

@@ -0,0 +1,18 @@
#Implementing List:
class SuperList(list):
def __len__(self):
return 1000
super_list1 = SuperList()
print(len(super_list1))
super_list1.append(5)
print(super_list1[0])
print(issubclass(SuperList, list))
print(issubclass(list, object))