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

Which is not a valid keyword a) public b) protected c) guarded

1264


What is the disadvantage of using a macro?

1127


What is array in c++ pdf?

1194


Explain function overloading and operator overloading.

1082


Explain the uses oof nested class?

1143


What is dev c++ used for?

1043


What is the use of volatile variable?

1089


Differentiate between a constructor and a method in C++.

1061


What are associate containers?

1042


What are the various oops concepts in c++?

1048


What is the need of a destructor? Explain with the help of an example.

1029


describe private access specifiers?

1241


What is endianness?

1102


What is oop in c++?

1085


Explain differences between alloc() and free()?

1142