Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why static Function is used in C++?

Answer Posted / rafiuddin

static functions can be called with out the class object
also. we can call static functions with scope resulation
operator.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

2334


What is variable example?

1088


What is class and example?

1262


How do you define social class?

1115


How to use CMutex, CSemaphore in VC++ MFC

4835


What is destructor give example?

1116


What is use of overloading?

1188


What is the difference between procedural programming and oops?

1200


Is oop better than procedural?

1086


What are the benefits of polymorphism?

1359


Is html an oop?

1123


what type of questions

2171


How long to learn object oriented programming?

1140


Can we have inheritance without polymorphism?

1077


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2588