Go4Expert Founder
18Nov2006,19:10   #11
shabbir's Avatar
What is overloading, overwriting, and overriding?
Go4Expert Founder
18Nov2006,19:11   #12
shabbir's Avatar
What you mean by virtual destructor and what are the advantages of them??
Go4Expert Founder
18Nov2006,19:13   #13
shabbir's Avatar
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?
Go4Expert Founder
18Nov2006,19:15   #14
shabbir's Avatar
Is there any function(s) which cannot be overloaded?
Go4Expert Founder
18Nov2006,19:17   #15
shabbir's Avatar
Should a Singleton class have a destructor and if it has what is the purpose of it?
Contributor
19Nov2006,09:16   #16
Aztec's Avatar
Who do you expect to post the answers? or is it just the questions thread?
Go4Expert Founder
20Nov2006,10:39   #17
shabbir's Avatar
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.