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
Give an example of run-time polymorphism/virtual functions.
What are all predefined data types in c++?
What is iterator c++?
What's the best free c++ profiler for windows?
What is an orthogonal base class in c++?
Why c++ is better than c language?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What are the uses of c++ in the real world?
What is recursion?
Which c++ compiler is best?
What is a set in c++?
What is a c++ vector?
What is a storage class?
What are arithmetic operators?
What are files in c++?