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
How do you clear a buffer in c++?
What is main function in c++ with example?
daily Routine of father
Define linked lists with the help of an example.
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What is abstraction in c++?
Why would you use pointers in c++?
Is c++ the best programming language?
What is null and void pointer?
What is the best it certification?
How do you clear a set in c++?
Explain what are mutator methods in c++?
Are iterators pointers?
What is stl containers in c++?
What is c++ good for?