it is actually the same as you overload the normal functions. only need to pay attention to the requirement for the arguments for each particular operator.
for example. only 1 arugment is allowed for 'operator []'. in your class, you can define it as: