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 the meaning of string in c++?
What character terminates all character array strings a) b) . c) END
Describe run-time type identification?
Do you know what are pure virtual functions?
What is the best c++ ide?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is size of Empty Class?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
What are the two shift operators and what are their functions?
In which memory a class gets stored(in heap /in stack)? And why??
Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.
How do you clear a buffer in c++?