Answer Posted / anil bisht
Static member functions have a class scope and they do not
have access to the 'this' pointer of the class. When a
member is declared as static, a static member of class, it
has only one data for the entire class even though there are
many objects created for the class. The main usage of static
function is when the programmer wants to have a function
which is accessible even when the class is not instantiated.
| Is This Answer Correct ? | 19 Yes | 0 No |
Post New Answer View All Answers
Describe the advantage of an external iterator.
What is virtual base class uses?
Difference between pointer to constant vs. Pointer constant
Can we use clrscr in c++?
Explain the difference between class and struct in c++?
Is python written in c or c++?
What are structs in c++?
Differentiate between the manipulator and setf( ) function?
What is the two main roles of operating system?
Is c++ a programming language?
Do you know what is overriding?
How do you find out if a linked-list has an end?
We use library functions in the program, in what form they are provided to the program?
How do I download c++?
What is a template in c++?