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 is the history of c++?
What are arrays c++?
What are containers in c++?
When should we use container classes instead of arrays?
Write a struct time where integer m, h, s are its members?
What is #include cmath?
What do you mean by friend class & friend function in c++?
What are structures and unions?
What is encapsulation in C++? Give an example.
What is a list c++?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
What is a c++ map?
how to connect with oracle 9i with server in socket program in c/c++
Does c++ have foreach?
What is the first name of c++?