Answer Posted / manu
Static member functions have external linkage. These
functions do not have this pointers. As a result,
They cannot access nonstatic class member data using
the member-selection operators (. or –>).
They cannot be declared as virtual.
They cannot have the same name as a nonstatic function
that has the same argument types.
They are useful as they donot have access to this pointer
and so they can be called even though the class is not
instantiated.
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
How to tokenize a string in c++?
What are the new features that iso/ansi c++ has added to original c++ specifications?
Is there any function that can skip certain number of characters present in the input stream?
What is c++ map?
Explain what is class definition in c++ ?
What are the vectors in c++?
Is c++ a programming language?
How const int *ourpointer differs from int const *ourpointer?
Can comments be longer than one line?
Does c++ have a hash table?
Can turbo c++ run c program?
What is std :: flush?
Differentiate between an inspector and a mutator ?
How do you differentiate between overloading the prefix and postfix increments?
Can you write a function similar to printf()?