Answer Posted / 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 |
Post New Answer View All Answers
What is data types c++?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
Why is c++ considered difficult?
What is #include iostream h in c++?
How would you use the functions memcpy(), memset(), memmove()?
What is the purpose of extern storage specifier?
What is enum class in c++?
What is null pointer and void pointer?
What are files in c++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What is the basic structure of a c++ program?
Are c and c++ different?
Do you know the use of vtable?
What are the advantages of early binding?
Who created c++?