![]() |
|
#1
|
||||
|
||||
calling static member function through objectIs there anything in the standards that we can't call static member function through objects...because everywhere i read it says that we call static member function by class name instead of object...but calling static member functions through object does works in all compilers....
I know that no implicit this pointer is passed in the static member functions...but is there any performance benefit by calling it though class name instead of objects. |
|
#2
|
||||
|
||||
Re: calling static member function through objectQuote:
Quote:
Quote:
It will work. ![]() Quote:
Regards, Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
|
#3
|
||||
|
||||
Re: calling static member function through objectQuote:
|
|
#4
|
||||
|
||||
Re: calling static member function through objectQuote:
Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] Function Pointers | aaroncohn | C++ Forum | 4 | 17-Feb-2006 11:33 |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 15:41 |
| Why static member function cannot be virtual in C++ | Poolan | C++ Forum | 1 | 20-Nov-2004 09:51 |
| Revising Script style ?????? | pepee | MySQL / PHP Forum | 4 | 14-Apr-2004 04:59 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The