Skip to main content
8.6: Chapter Summary
- Last updated
Save as PDF
- If you override = then you should override
hash as well.
postCopy to correctly implement copying for your objects.
self halt to set a breakpoint.
self subclassResponsibility to make a method abstract.
- To give an object a
String representation you should override
- Override the hook method
initialize to properly initialize instances.
Number methods automatically convert between
Fractions truly represent rational numbers rather than floats.
Characters are unique instances.
Strings are mutable;
Symbols are not. Take care not to mutate string literals, however!
Symbols are unique;
Strings are not.
Collections and therefore support the usual