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

Explain the register storage classes in c++.

1231


What is #include math h in c++?

1140


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

1262


What is the average salary of a c++ programmer?

1067


What is the difference between containment and delegation?

1404


What is the default access level?

1122


What do you mean by funtion prototype?

1151


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

1023


Can you overload the operator+ for short integers?

1090


Declare a class vehicle and make it an abstract data type.

1028


Which one is a preferred language C or C++? Why?

1147


Is c++ a dying language?

1208


Explain the use of this pointer?

1209


What is an html tag?

1231


What is the insertion operator and what does it do?

1104