Content deleted Content added
No edit summary |
→Deconstructor Methods: Fix typo |
||
Line 110:
===Deconstructor Methods===
A deconstructor's job is to decompose a class object into a tuple of elemental objects. For example a 2D coordinate class might be deconstructed into a tuple of integer x and integer y. (Note: This feature is NOT to be confused with the similarly sounding destructor method that is common in object
For Example, the collection object contains a deconstructor method that splits each collection item into an index and an element variable:
|