Answer Posted / 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 |
Post New Answer View All Answers
What is an advantage of polymorphism?
What is a class in oop?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What makes a language oop?
What is and I oop mean?
What are the advantages of polymorphism?
What is difference between pop and oop?
What causes polymorphism?
What is object and example?
What are oops functions?
Is enum a class?
What is polymorphism what are the different types of polymorphism?
What is difference between data abstraction and encapsulation?
Why do we use inheritance?
hi all..i want to know oops concepts clearly can any1 explain??