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
Do we have to use initialization list in spite of the assignment in constructors?
What is else if syntax?
Define vptr.
What is c++ prototype?
When should overload new operator on a global basis or a class basis?
Explain Text Manipulation Routines?
What are pointer-to-members in C++? Give their syntax.
what do you mean by volatile variable?
How do you compile the source code with your compiler?
Write about the stack unwinding?
Why c++ is the best language?
What is the real purpose of class – to export data?
What are iterators in c++?
Explain what are mutator methods in c++?
What is endianness?