Why static Function is used in C++?
Answers were Sorted based on User's Feedback
Answer / sujai cn
Static functions are used to perform the tasks which are
independent of the state of object or to perform class wide
functions ex. to count the number of instaces (objects) are
there in existence.
| Is This Answer Correct ? | 14 Yes | 1 No |
Answer / rafiuddin
static functions can be called with out the class object
also. we can call static functions with scope resulation
operator.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / mugdha taru
Because it is the only function which is accessible even
when class is not instantiateed
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / mugdha taru
Because it is the only function which is accessible even
when class is not instantiateed
| Is This Answer Correct ? | 2 Yes | 2 No |
what uses of c++ language?
what is the definition of incapsulation
What is the difference between C++ and java?
what is SPL in c++.
How long to learn object oriented programming?
What is polymorphism explain its types?
What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?
write a C++ program for booking using constructor and destructor.
What is the difference between abstraction and polymorphism?
what is mean by design pattern
sir plz send me a set of questions that been frequently held in written examination during campus selection.
What do you mean by inheritance?