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 static function

Answers were Sorted based on User's Feedback



what is static function..

Answer / anil bisht

Static member functions have a class scope and they do not
have access to the 'this' pointer of the class. When a
member is declared as static, a static member of class, it
has only one data for the entire class even though there are
many objects created for the class. The main usage of static
function is when the programmer wants to have a function
which is accessible even when the class is not instantiated.

Is This Answer Correct ?    19 Yes 0 No

what is static function..

Answer / aavesh yadav

Static functions are functions which can access only static
variables and local variables.It can be called by class
name bcoz it is specific for a class in which it is
defined,not for any specific object of that class.It can
not be inherited also.

Is This Answer Correct ?    7 Yes 4 No

Post New Answer

More C++ General Interview Questions

how to connect with oracle 9i with server in socket program in c/c++

0 Answers   3i Infotech,


What is a custom exception?

1 Answers  


What are the strengths of C++?

1 Answers  


Is c++ vector dynamic?

0 Answers  


How many static variables are created if you put one static member into a template class definition?

0 Answers  


Why do we learn c++?

0 Answers  


What is a virtual destructor?

2 Answers  


You want to link a c++ program to c functions. How would you do it?

0 Answers  


What is the function of the keyword ‘volatile’ in C++?

1 Answers  


Why do we need function?

0 Answers  


Why c++ is called oop?

0 Answers  


Which programming language is best to learn first?

0 Answers  


Categories