Test Your Knowledge: Quiz

 

 
  1. What two operator overloading methods can you use to support iteration in your classes?
  2. What two operator overloading methods handle printing, and in what contexts?
  3. How can you intercept slice operations in a class?
  4. How can you catch in-place addition in a class?
  5. When should you provide operator overloading?