Topic Practice · Intermediate
Inheritance & Special Methods problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. Animal Sounds
4 test casesEasy✓2. Calling super()
4 test casesEasy✓3. isinstance Check
3 test casesEasy✓4. __str__
4 test casesEasy✓5. __len__
4 test casesEasy✓6. Cars and Bikes
4 test casesEasy✓7. Extending a Method
4 test casesEasy✓8. Family Tree of Classes
4 test casesEasy✓9. A Helpful __repr__
4 test casesEasy✓10. A Child Gets the Method
4 test casesEasy✓11. Override a Greeting
4 test casesEasy✓12. Child Adds an Attribute
4 test casesEasy✓13. Is a Dog an Animal?
4 test casesEasy✓14. Shape Names
4 test casesEasy✓15. Use the Parent's Method
4 test casesEasy✓16. What Class Is It?
4 test casesEasy✓17. __str__ in a Child Class
4 test casesEasy✓18. Legs of Animals
4 test casesEasy✓19. Three Generations
4 test casesEasy✓20. A Method Only the Child Has
4 test casesEasy✓21. Same Call, Different Results
4 test casesEasy✓22. Attribute From the Parent
4 test casesEasy✓23. Shapes and Areas
4 test casesMedium✓24. Vector Addition
4 test casesMedium✓25. Equal Objects
4 test casesMedium✓26. Manager Is an Employee
4 test casesMedium✓27. Account Types
4 test casesMedium✓28. Dataclass
4 test casesMedium✓29. Sortable Objects
4 test casesMedium✓30. Which Method Runs?
3 test casesMedium✓31. Polymorphic Bill
4 test casesMedium✓32. Supporting the in Operator
4 test casesMedium✓33. Multiply a Vector by a Number
4 test casesMedium✓34. Truthiness of an Object
4 test casesMedium✓35. A Static Helper
4 test casesMedium✓36. Adding Money Objects
4 test casesMedium✓37. Order of __init__ Calls
4 test casesMedium✓38. Must Be Overridden
4 test casesMedium✓39. A Mixin That Describes
4 test casesMedium✓40. Count Objects per Class
4 test casesMedium✓41. Abstract Base Class
4 test casesHard✓42. Make a Class Iterable
4 test casesHard✓43. Indexable Class
4 test casesHard✓44. Multiple Inheritance
2 test casesHard✓45. Composition: Car Has an Engine
4 test casesHard✓46. Alternative Constructor
4 test casesHard✓47. Square Is a Rectangle
4 test casesHard✓48. Objects You Can Call
4 test casesHard✓49. Expression Tree
4 test casesHard✓50. Files and Folders
4 test casesHard
4 test casesEasy✓2. Calling super()
4 test casesEasy✓3. isinstance Check
3 test casesEasy✓4. __str__
4 test casesEasy✓5. __len__
4 test casesEasy✓6. Cars and Bikes
4 test casesEasy✓7. Extending a Method
4 test casesEasy✓8. Family Tree of Classes
4 test casesEasy✓9. A Helpful __repr__
4 test casesEasy✓10. A Child Gets the Method
4 test casesEasy✓11. Override a Greeting
4 test casesEasy✓12. Child Adds an Attribute
4 test casesEasy✓13. Is a Dog an Animal?
4 test casesEasy✓14. Shape Names
4 test casesEasy✓15. Use the Parent's Method
4 test casesEasy✓16. What Class Is It?
4 test casesEasy✓17. __str__ in a Child Class
4 test casesEasy✓18. Legs of Animals
4 test casesEasy✓19. Three Generations
4 test casesEasy✓20. A Method Only the Child Has
4 test casesEasy✓21. Same Call, Different Results
4 test casesEasy✓22. Attribute From the Parent
4 test casesEasy✓23. Shapes and Areas
4 test casesMedium✓24. Vector Addition
4 test casesMedium✓25. Equal Objects
4 test casesMedium✓26. Manager Is an Employee
4 test casesMedium✓27. Account Types
4 test casesMedium✓28. Dataclass
4 test casesMedium✓29. Sortable Objects
4 test casesMedium✓30. Which Method Runs?
3 test casesMedium✓31. Polymorphic Bill
4 test casesMedium✓32. Supporting the in Operator
4 test casesMedium✓33. Multiply a Vector by a Number
4 test casesMedium✓34. Truthiness of an Object
4 test casesMedium✓35. A Static Helper
4 test casesMedium✓36. Adding Money Objects
4 test casesMedium✓37. Order of __init__ Calls
4 test casesMedium✓38. Must Be Overridden
4 test casesMedium✓39. A Mixin That Describes
4 test casesMedium✓40. Count Objects per Class
4 test casesMedium✓41. Abstract Base Class
4 test casesHard✓42. Make a Class Iterable
4 test casesHard✓43. Indexable Class
4 test casesHard✓44. Multiple Inheritance
2 test casesHard✓45. Composition: Car Has an Engine
4 test casesHard✓46. Alternative Constructor
4 test casesHard✓47. Square Is a Rectangle
4 test casesHard✓48. Objects You Can Call
4 test casesHard✓49. Expression Tree
4 test casesHard✓50. Files and Folders
4 test casesHard