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 is c++ in english?

1118


Explain one method to process an entire string as one unit?

1661


How can I disable the "echo" feature?

1233


What does I ++ mean in c++?

1173


What does the ios::ate argument do?

1236


In c++, what is the difference between method overloading and method overriding?

1193


When is the copy constructor called?

1202


What is c++ w3school?

1154


Is c++ a high level language?

1050


Is nan a c++?

1204


What are enumerations?

1146


How do you write a function that can reverse a linked-list?

1170


What does #define mean in c++?

1346


Explain how to initialize a const data member.

1176


What is abstraction c++?

1057