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
What is const pointer and const reference?
What is a storage class used in c++?
What is a template in c++?
What is #include ctype h in c++?
Will the following program execute?
Explain the concept of dynamic allocation of memory?
What do you mean by public protected and private in c++?
What is an accessor in c++?
Can we specify variable field width in a scanf() format string? If possible how?
How do I run c++?
Describe private, protected and public – the differences and give examples.
How do I use turbo c++?
What is the standard template library (stl)?
How a new operator differs from the operator new?
How is objective c different from c++?