which operators below can be overloaded as class member and non meber function in c++ ?
1) +
2) ()
3) []
which operators below can be overloaded as class member and non meber function in c++ ?
1) +
2) ()
3) []
Virtually all decent introductory material about C++ deals with this - and with most of the questions you've started threads for.
Since you clearly expect other people to do the hard work of learning and thinking for you, welcome to my ignore list.
whiteflags failed the test though: none of them "can be overloaded as (...) non meber function".
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
I somehow forgot that friends count as members of the client class. Not that they have to be friends.
Heh, I'm just playing with a typo.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)