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...

What is the use of static functions?

Answer Posted / manu

Static member functions have external linkage. These
functions do not have this pointers. As a result,

They cannot access nonstatic class member data using
the member-selection operators (. or –>).

They cannot be declared as virtual.

They cannot have the same name as a nonstatic function
that has the same argument types.

They are useful as they donot have access to this pointer
and so they can be called even though the class is not
instantiated.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give an example of run-time polymorphism/virtual functions.

948


What are all predefined data types in c++?

1068


What is iterator c++?

926


What's the best free c++ profiler for windows?

1031


What is an orthogonal base class in c++?

1092


Why c++ is better than c language?

955


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1009


What are the uses of c++ in the real world?

980


What is recursion?

1931


Which c++ compiler is best?

1095


What is a set in c++?

918


What is a c++ vector?

987


What is a storage class?

1180


What are arithmetic operators?

940


What are files in c++?

977