what is static?
Answers were Sorted based on User's Feedback
Answer / azaad
static is keyword which is used for a variable and also for
a method.
static variable is initialized only once (i.e)one time memory.
static method of a class should not called with an objecy it
should be called with class name...
syntax: class-name.static method()
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / suresh reddy
1. Static limits the scope of an object(variable) or a
function to the file in which it being compiled.
2. A static variable retains its value between function
calls, even though its a local variable.
3. Lifetime of a static variable is the entire program.
4. We can't use extern keyword for a static object.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / tanaji
if we use static method ,first static method will execute then other.
| Is This Answer Correct ? | 1 Yes | 0 No |
Tell us about yourself.
47 Answers ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,
what is multi level inheritance give n example ?
13 Answers HDFC, Hulas Steel, Ness Technologies,
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
What is a class in oop?
What is a superclass in oop?
How can we use the preprocessor #if and #elseif.
create a c++ program that will ask 10 numbers and display their sum using array.
write a c++ code of diagonal matrix.
Is enum a class?
why freind function takes more parameter than normal member function in c++?
We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts?
What are the features of oop?