shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
What is overloading, overwriting, and overriding?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
What you mean by virtual destructor and what are the advantages of them??
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
I always understood that in C++, if I said

a + b

a.operator+(b) is called.

Now this makes sense with the operator<< when used in the following way

cout << 100; // converts to cout.operator<<(100);

but then how does one explain this one

cout << end; // endl(cout).

In what order does C++ look for operator functions? What all functions does it search before giving up? In other words

when C++ sees

a+b

does it look for the existence of :

a.operator(b)
b(a)
a(b) ....???

or is the operator<< a special case?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Is there any function(s) which cannot be overloaded?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Should a Singleton class have a destructor and if it has what is the purpose of it?
Aztec's Avatar, Join Date: May 2006
Contributor
Who do you expect to post the answers? or is it just the questions thread?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Aztec
Who do you expect to post the answers? or is it just the questions thread?
I had the plans of putting the questions only but if you wish to post the answers quote the message and put them as a post to the thread as well.

There is always an option of searching within the thread so that wont be a probs.