Question: The insertion operator ( < < ) . The insertion operator should add the int parameter into the receiving IntCollection. The functionality is the same
The insertion operator The insertion operator should add the int parameter into the receiving IntCollection. The functionality is the same as the add function, ie add ints to the collection. Note, however, that this function must return a reference to itself in order to support multiple insertions on the same line, eg c Unlike the assignment operator, this return must be done by reference, because each insertion actually modifies the IntCollection object, and insertion is done from left to right.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
