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 is meant by reference variable in C++?
Does c++ have finally?
What are the weaknesses of C++?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
Is set c++?
List down the guideline that should be followed while using friend function.
Explain the concept of dynamic allocation of memory?
structure that describe a hotel with name, address,rooms and number of rooms
How do you clear a set in c++?
What parameter does the constructor to an ofstream object take?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
What does I ++ mean in c++?