3.Comparison (1)ยง
How do we generalize the concept of comparison?
"<" is not good enough. String < String won't give you what you want.
Need a general way to get the key out of a record
- Define a method record.key()?
- [Note for C++ users: Operator overloading is effectively the same thing.]
- That is not good enough. What if we want to search on different key fields?