By overloading the array subscript operator [ ] , you can treat your objects like they are arrays.
For example:
Foo f;
f[2] = 99;
In this video, I will show you how.
On this page of the site you can watch the video online C++ Operator Overloading Tutorial : Overloading the array subscript operator [ ] [9] with a duration of hours minute second in good quality, which was uploaded by the user Professor Hank Stalica 22 March 2018, share the link with friends and acquaintances, this video has already been watched 2,520 times on youtube and it was liked by 34 viewers. Enjoy your viewing!