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

What are structs in c++?

979


Does there exist any other function which can be used to convert an integer or a float to a string?

1035


Explain polymorphism?

1038


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2539


Can malloc be used in c++?

1041


How can we check whether the contents of two structure variables are same or not?

1032


What can I use instead of namespace std?

1085


Will this c++ program execute or not?

1029


How do I get good at c++ programming?

1101


Can the creation of operator** is allowed to perform the to-the-power-of operations?

957


What is a lambda function c++?

1040


what do you mean by volatile variable?

996


Discussion on error handling of C++ .

1080


What is the main function c++?

1076


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

1068