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
What are smart pointers?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
How can I learn c++ easily?
What happens if a pointer is deleted twice?
Why is standard template library used?
What is meant by forward referencing and when should it be used?
What are c++ storage classes?
Describe protected access specifiers?
What is the difference between passing by reference and passing a reference?
What is the need of a destructor?
What are stacks? Give an example where they are useful.
Difference between delete and free.
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What is an orthogonal base class in c++?
What is using namespace std in cpp?