what is static function
Answers were Sorted based on User's Feedback
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 |
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 |
how to connect with oracle 9i with server in socket program in c/c++
What is a custom exception?
What are the strengths of C++?
Is c++ vector dynamic?
How many static variables are created if you put one static member into a template class definition?
Why do we learn c++?
What is a virtual destructor?
You want to link a c++ program to c functions. How would you do it?
What is the function of the keyword ‘volatile’ in C++?
Why do we need function?
Why c++ is called oop?
Which programming language is best to learn first?