What does the keyword "static" mean?
Answers were Sorted based on User's Feedback
Answer / subhashish sen
static keyword is used with both variables and
functions.when a static variables means it retains its value
for different function calls and in C++ this variable is
used mainly for counting no. of objects of a class and it is
not confined to a particular object and for static member
functions its can only manipulate static variables and a
static member function can be invoked without an object of
class.
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / mangai
static functions are used to retain the last assigned
value...static function creates only one copy of arguments
and uses it...
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / anjana priyadharshini
Static:
static is one of the key word of the language c++.static means constant
| Is This Answer Correct ? | 1 Yes | 6 No |
what is the main difference between sizeof() operator in c and c++
why freind function takes more parameter than normal member function in c++?
You have one base class virtual function how will call that function from derived class?
When is it necessary to use member-wise initialization list in C++?
Why and when is a virtual destructor needed?
What is overloading and its types?
Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}
if u write a class do u write Assignment operator and copy constructor
Can destructor be overloaded?
Which method cannot be overridden?
what is main difference between object oriented object base
how much classes are used in c++