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
Explain the register storage classes in c++.
What is #include math h in c++?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
What is the average salary of a c++ programmer?
What is the difference between containment and delegation?
What is the default access level?
What do you mean by funtion prototype?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
Can you overload the operator+ for short integers?
Declare a class vehicle and make it an abstract data type.
Which one is a preferred language C or C++? Why?
Is c++ a dying language?
Explain the use of this pointer?
What is an html tag?
What is the insertion operator and what does it do?