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 #include math h in c++?
What is meaning of in c++?
Can comments be nested?
What is c++ similar to?
What does ctime() do?
Should I learn c or c++ first?
Why cstdlib is used in c++?
How can you quickly find the number of elements stored in a dynamic array?
What is a manipulative person?
What is a container class? What are the types of container classes in c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is #include c++?
Can user-defined object be declared as static data member of another class?
How many types of modularization are there in c++?
What return value must conversion operators have in their declaration?