Added more test files from lectures.

This commit is contained in:
cheezedoodle2
2023-04-06 17:03:21 -07:00
parent c610762522
commit 0dd1348601
13 changed files with 311 additions and 7 deletions
+14
View File
@@ -0,0 +1,14 @@
class Hotdog:
count: float = 0
def __init__(self) -> None:
Hotdog.count += 1
@staticmethod
def get_count() -> int:
return Hotdog.count
if __name__ == '__main__':
h1 = Hotdog()
print(Hotdog.get_count())
h2 = Hotdog()
print(Hotdog.get_count())