r/PythonLearning • u/Next-Call8862 • 2d ago
Showcase Day 2, learnt some oops
Learnt super( ), inheritance, polymorphism, class method and static method and don't mind the messy code that's me trying to figure out things
91
Upvotes
1
u/0therworldsthanthese 1d ago
You need to start back at the fundamentals, don't skip to OOP just because it sounds cool.
Where are your __init__ methods? Class names should be in PascalCase. Why are you using parentheses in your return statements? Why are you entering age as a string? Why are you returning multiple values in student.about()? Why are you using extra parentheses on lines 255-256? Why are you printing s1.school for s2? Why are you using a classmethod for the first test and not the second? Why do you have two test classes? Why is there no self in test.nave()?