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 structs in c++?
Does there exist any other function which can be used to convert an integer or a float to a string?
Explain polymorphism?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Can malloc be used in c++?
How can we check whether the contents of two structure variables are same or not?
What can I use instead of namespace std?
Will this c++ program execute or not?
How do I get good at c++ programming?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is a lambda function c++?
what do you mean by volatile variable?
Discussion on error handling of C++ .
What is the main function c++?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.