teach_cs_toronto_edu_csc148h_notes_inheritance_python_special_methods_html
teach_cs_toronto_edu_csc148h_notes_inheritance_python_special_methods_html
Keep in mind that even though these methods are called “special”, overriding them in your classes works in the exact same
4. Abstract Data Types
way as other methods: simply define a method with the specific name of that special method.
4.1 Introduction to Abstract Data
Types
[1] By “ancestor” we mean either a parent class, or a parent of a parent class, etc.
4.2 Stacks and Queues