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 |
when my application exe is running nad i don't want to create another exe what should i do
What is function overloading and operator overloading?
What are the data types in oop?
3. Differentiate verification and validation.
What is persistence in oop?
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram
What is late bound function call and early bound function call? Differentiate.
What are the fields of vtable
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
how do you handle yourself when you feel the wald is aganist you
What is difference between #define and const?
What is Iteration Hierarchy? What is what is Object behavioral concept?