what is static function
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / aavesh yadav
Static functions are functions which can access only static
variables and local variables.It can be called by class
name bcoz it is specific for a class in which it is
defined,not for any specific object of that class.It can
not be inherited also.
| Is This Answer Correct ? | 7 Yes | 4 No |
What relational operators if statements in c++?
What are the 4 types of library?
What is the fastest c++ compiler?
What is the difference between a copy constructor and an overloaded assignment operator?
4 Answers Belzabar, Citrix, Microsoft, Wipro,
without if else statement can be written ah
What is the difference between new() and malloc()?
Explain this pointer?
Explain static and dynamic memory allocation with an example each.
What is a static member?
What do the header files usually contains?
Can c++ be faster than c?
Implement strncpy