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
Define virtual constructor.
What are virtual functions in c++?
How java is different from c and c++?
What is an iterator class in c++?
What is a constant reference?
What is the type of this pointer in c++?
Is nan a c++?
What it is and how it might be called (2 methods).
Does c++ cost money?
What are the various storage classes in C++?
Is c++ a software?
What is the use of setprecision in c++?
Why is c++ difficult?
What are c++ files?
What do nonglobal variables default to a) auto b) register c) static